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

Method IsValidFor

Source/Engine/Graphics/Models/ModelInstanceEntry.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool ModelInstanceEntries::IsValidFor(const Model* model) const
61{
62 // Just check amount of material slots
63 ASSERT(model && model->IsInitialized());
64 return model->MaterialSlots.Count() == Count();
65}
66
67bool ModelInstanceEntries::IsValidFor(const SkinnedModel* model) const
68{

Callers 2

ModelDrawFunction · 0.80
DrawMethod · 0.80

Calls 3

CountFunction · 0.85
IsInitializedMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected