Selaa lähdekoodia

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

Alexander Gessler 13 vuotta sitten
vanhempi
sitoutus
4f6dbac919
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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();
 	}