- fbx: prevent infinite recursion when resolving objects with cyclic references.

pull/14/head
Alexander Gessler 2012-07-21 17:13:03 +02:00
parent 378bc93593
commit 4f6dbac919
1 changed files with 4 additions and 0 deletions

View File

@ -404,6 +404,10 @@ LazyObject::~LazyObject()
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
const Object* LazyObject::Get() const Object* LazyObject::Get()
{ {
if(being_constructed) {
return NULL;
}
if (object.get()) { if (object.get()) {
return object.get(); return object.get();
} }