Fix variious issues

This commit is contained in:
Wojtek Figat
2024-11-21 23:42:05 +01:00
parent 826d37c513
commit f8f4edfa76
4 changed files with 6 additions and 4 deletions

View File

@@ -447,6 +447,8 @@ namespace FlaxEditor.Modules
private void StateMachineOnStateChanged()
{
if (Editor.StateMachine.CurrentState is States.ClosingState)
return;
UpdateToolstrip();
UpdateStatusBar();
}

View File

@@ -648,7 +648,7 @@ namespace FlaxEditor.Windows
/// <returns>True if can build, otherwise false.</returns>
public bool CanBuild(PlatformType platformType)
{
if (_buildTabProxy.PerPlatformOptions.TryGetValue(platformType, out var platform))
if (_buildTabProxy != null && _buildTabProxy.PerPlatformOptions.TryGetValue(platformType, out var platform))
return platform.IsAvailable && platform.IsSupported;
return false;
}

View File

@@ -393,8 +393,8 @@ public:
/// <returns>The inverse of the specified quaternion.</returns>
static Quaternion Invert(const Quaternion& value)
{
Quaternion result;
Invert(value, result);
Quaternion result = value;
result.Invert();
return result;
}

View File

@@ -155,7 +155,7 @@ public:
/// Subtracts transformation from this transform.
/// </summary>
/// <param name="other">The other transformation.</param>
/// <returns>The different of two transformations.</returns>
/// <returns>The difference of two transformations.</returns>
Transform Subtract(const Transform& other) const;
/// <summary>