Changeset 11129 for code/branches/ogre1.9/src/orxonox/worldentities
- Timestamp:
- Mar 6, 2016, 3:32:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/src/orxonox/worldentities/WorldEntity.cc
r11083 r11129 548 548 { 549 549 this->node_->attachObject(object); 550 #if OGRE_VERSION >= 0x010900 551 object->getUserObjectBindings().setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 552 #else 550 553 object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 554 #endif 551 555 } 552 556 … … 563 567 void WorldEntity::detachOgreObject(Ogre::MovableObject* object) 564 568 { 569 #if OGRE_VERSION >= 0x010900 570 object->getUserObjectBindings().setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(nullptr))); 571 #else 565 572 object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(nullptr))); 573 #endif 566 574 this->node_->detachObject(object); 567 575 }
Note: See TracChangeset
for help on using the changeset viewer.