Jelajahi Sumber

feedback for *which* namespace is already linked. should probably look into enhancing assertwarn to be able to take a formatted string at some point...

Azaezel 10 tahun lalu
induk
melakukan
793d7bf856
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      Engine/source/console/simObject.cpp

+ 2 - 1
Engine/source/console/simObject.cpp

@@ -1407,7 +1407,8 @@ void SimObject::linkNamespaces()
    // while still having the class namespace fields matching the current
    // setup.
 
-   AssertWarn( mNameSpace == NULL, "SimObject::linkNamespaces -- Namespace linkage already in place" );
+   if (mNameSpace != NULL)
+      Con::warnf("SimObject::linkNamespaces -- Namespace linkage already in place %s", mNameSpace->getName());
    if( mNameSpace )
       return;