- Timestamp:
- May 3, 2010, 10:33:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/graphics/Model.cc
r6843 r6852 105 105 float scaleFactor = getBiggestScale(this->getScale3D()); 106 106 BaseObject* creatorPtr = this->getCreator(); 107 while(creatorPtr!=0) 107 //TODO Doesn't work... 108 while(creatorPtr!=0&&typeid(creatorPtr)!=typeid(new WorldEntity*)) 108 109 { 109 // TODO Cannot cast to WorldEntity 110 scaleFactor *= getBiggestScale(((WorldEntity) creatorPtr)->getScale3D()); 110 scaleFactor *= getBiggestScale(((WorldEntity*) creatorPtr)->getScale3D()); 111 111 creatorPtr = this->getCreator(); 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.