Procházet zdrojové kódy

Merge pull request #1175 from Azaezel/linkNamespacesDebugOutput

feedback for *which* namespace is already linked.
Daniel Buckmaster před 10 roky
rodič
revize
7d4aeb8779
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      Engine/source/console/simObject.cpp

+ 4 - 3
Engine/source/console/simObject.cpp

@@ -1407,10 +1407,11 @@ void SimObject::linkNamespaces()
    // while still having the class namespace fields matching the current
    // while still having the class namespace fields matching the current
    // setup.
    // setup.
 
 
-   AssertWarn( mNameSpace == NULL, "SimObject::linkNamespaces -- Namespace linkage already in place" );
-   if( mNameSpace )
+   if (mNameSpace)
+   {
+      Con::warnf("SimObject::linkNamespaces -- Namespace linkage already in place %s", mNameSpace->getName());
       return;
       return;
-
+   }
    // Get the namespace for the C++ class.
    // Get the namespace for the C++ class.
 
 
    Namespace* cppNamespace = getClassRep()->getNameSpace();
    Namespace* cppNamespace = getClassRep()->getNameSpace();