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

Method UpdateAnimation

Source/Engine/Level/Actors/AnimatedModel.cpp:121–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void AnimatedModel::UpdateAnimation()
122{
123 // Skip if need to
124 if (UpdateMode == AnimationUpdateMode::Never
125 || !IsActiveInHierarchy()
126 || SkinnedModel == nullptr
127 || !SkinnedModel->IsLoaded()
128 || _lastUpdateFrame == Engine::UpdateCount
129 || _masterPose)
130 return;
131 _lastUpdateFrame = Engine::UpdateCount;
132
133 if (AnimationGraph && AnimationGraph->IsLoaded() && AnimationGraph->Graph.IsReady())
134 {
135 // Request an animation update
136 Animations::AddToUpdate(this);
137 }
138}
139
140void AnimatedModel::SetupSkinningData()
141{

Callers 4

AnimationTimelineClass · 0.80
OnSeekMethod · 0.80
StopMethod · 0.80
UpdateMethod · 0.80

Calls 3

IsActiveInHierarchyFunction · 0.85
IsLoadedMethod · 0.45
IsReadyMethod · 0.45

Tested by

no test coverage detected