Skip to content

Commit

Permalink
Main: StaticGeometry - logError if Root SceneNode is transformed
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jul 15, 2022
1 parent e535556 commit 534c395
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OgreMain/src/OgreStaticGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ namespace Ogre {
//--------------------------------------------------------------------------
void StaticGeometry::addSceneNode(const SceneNode* node)
{
if(node->getCreator()->getRootSceneNode()->_getFullTransform() != Affine3::IDENTITY)
{
// otherwise it is applied twice
LogManager::getSingleton().logError("StaticGeometry - Root SceneNode transform must be IDENTITY");
}

for (auto mobj : node->getAttachedObjects())
{
if (mobj->getMovableType() == "Entity")
Expand Down

0 comments on commit 534c395

Please sign in to comment.