mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix an assertion
This commit is contained in:
parent
61661c8653
commit
fa5198d7b2
@ -73,7 +73,7 @@ Animation::~Animation()
|
|||||||
|
|
||||||
void Animation::setObjectRoot(Ogre::SceneNode *node, const std::string &model, bool baseonly)
|
void Animation::setObjectRoot(Ogre::SceneNode *node, const std::string &model, bool baseonly)
|
||||||
{
|
{
|
||||||
OgreAssert(mAnimSources.size() != 0, "Setting object root while animation sources are set!");
|
OgreAssert(mAnimSources.size() == 0, "Setting object root while animation sources are set!");
|
||||||
if(!mInsert)
|
if(!mInsert)
|
||||||
mInsert = node->createChildSceneNode();
|
mInsert = node->createChildSceneNode();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user