- fbx: prevent infinite recursion when resolving objects with cyclic references.
This commit is contained in:
@@ -404,6 +404,10 @@ LazyObject::~LazyObject()
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Object* LazyObject::Get()
|
||||
{
|
||||
if(being_constructed) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (object.get()) {
|
||||
return object.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user