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

Function CanUpdateModel

Source/Engine/Animations/Animations.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace
39{
40 FORCE_INLINE bool CanUpdateModel(const AnimatedModel* animatedModel)
41 {
42 auto skinnedModel = animatedModel->SkinnedModel.Get();
43 auto animGraph = animatedModel->AnimationGraph.Get();
44 return animGraph && animGraph->IsLoaded()
45 && skinnedModel && skinnedModel->IsLoaded()
46#if USE_EDITOR
47 // It may happen in editor so just add safe check to prevent any crashes
48 && animGraph->Graph.Parameters.Count() == animatedModel->GraphInstance.Parameters.Count()
49#endif
50 && animGraph->Graph.IsReady();
51 }
52}
53
54AnimationsService AnimationManagerInstance;

Callers 2

JobMethod · 0.85
PostExecuteMethod · 0.85

Calls 4

GetMethod · 0.45
IsLoadedMethod · 0.45
CountMethod · 0.45
IsReadyMethod · 0.45

Tested by

no test coverage detected