Variosu tweaks
This commit is contained in:
@@ -725,9 +725,7 @@ namespace FlaxEditor.Modules
|
||||
for (int i = 0; i < Windows.Count; i++)
|
||||
{
|
||||
if (string.Equals(Windows[i].SerializationTypename, typename, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return Windows[i];
|
||||
}
|
||||
}
|
||||
|
||||
// Check if it's an asset ID
|
||||
|
||||
@@ -191,9 +191,7 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
var value = title;
|
||||
int count = 1;
|
||||
while (!OnRenameValidate(null, value))
|
||||
{
|
||||
value = title + " " + count++;
|
||||
}
|
||||
Values[0] = value;
|
||||
Title = value;
|
||||
|
||||
|
||||
@@ -226,6 +226,8 @@ namespace FlaxEditor.Windows
|
||||
/// <inheritdoc />
|
||||
public override void OnDestroy()
|
||||
{
|
||||
if (IsDisposing)
|
||||
return;
|
||||
OnExit();
|
||||
|
||||
// Unregister
|
||||
|
||||
@@ -205,7 +205,7 @@ struct FLAXENGINE_API AnimGraphSlot
|
||||
/// <summary>
|
||||
/// The animation graph state container for a single node playback trace (eg. animation sample info or state transition). Can be used by Anim Graph debugging or custom scripting.
|
||||
/// </summary>
|
||||
API_STRUCT() struct FLAXENGINE_API AnimGraphTraceEvent
|
||||
API_STRUCT(NoDefault) struct FLAXENGINE_API AnimGraphTraceEvent
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(AnimGraphTraceEvent);
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ Variant AnimGraphExecutor::SampleState(AnimGraphNode* state)
|
||||
|
||||
void AnimGraphExecutor::InitStateTransition(AnimGraphContext& context, AnimGraphInstanceData::StateMachineBucket& stateMachineBucket, AnimGraphStateTransition* transition)
|
||||
{
|
||||
// Reset transiton
|
||||
// Reset transition
|
||||
stateMachineBucket.ActiveTransition = transition;
|
||||
stateMachineBucket.TransitionPosition = 0.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user