Browse Source

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

Alexander Gessler 13 years ago
parent
commit
4f6dbac919
1 changed files with 4 additions and 0 deletions
  1. 4 0
      code/FBXDocument.cpp

+ 4 - 0
code/FBXDocument.cpp

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