- Minor cleanup

This commit is contained in:
Nils Hausfeld
2023-10-06 17:50:19 +02:00
parent ea355dd560
commit 63d57151d0
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ namespace FlaxEditor.Surface.Archetypes
{
private AssetSelect _assetSelect;
private Box _assetBox;
/// <inheritdoc />
public Sample(uint id, VisjectSurfaceContext context, NodeArchetype nodeArch, GroupArchetype groupArch)
: base(id, context, nodeArch, groupArch)
@@ -77,7 +77,7 @@ namespace FlaxEditor.Surface.Archetypes
public override void ConnectionTick(Box box)
{
base.ConnectionTick(box);
if(box.ID != _assetBox.ID)
return;

View File

@@ -772,7 +772,7 @@ void AnimGraphExecutor::ProcessGroupAnimation(Box* boxBase, Node* nodeBase, Valu
else
anim = nullptr;
}
const float length = anim ? anim->GetLength() : 0.0f;
// Calculate new time position