MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ClearState

Method ClearState

Source/Engine/Animations/Graph/AnimGraph.cpp:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void AnimGraphInstanceData::ClearState()
65{
66 for (const auto& e : ActiveEvents)
67 OutgoingEvents.Add(e.End((AnimatedModel*)Object));
68 ActiveEvents.Clear();
69 InvokeAnimEvents();
70 Version = 0;
71 LastUpdateTime = -1;
72 CurrentFrame = 0;
73 RootTransform = Transform::Identity;
74 RootMotion = Transform::Identity;
75 State.Resize(0);
76 DynamicState.Resize(0);
77 NodesPose.Resize(0);
78 TraceEvents.Clear();
79}
80
81void AnimGraphInstanceData::Invalidate()
82{

Callers 1

UpdateMethod · 0.45

Calls 4

AddMethod · 0.45
EndMethod · 0.45
ClearMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected