소스 검색

Merge pull request #1175 from Azaezel/linkNamespacesDebugOutput

feedback for *which* namespace is already linked.
Daniel Buckmaster 10 년 전
부모
커밋
7d4aeb8779
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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
    // 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;
-
+   }
    // Get the namespace for the C++ class.
 
    Namespace* cppNamespace = getClassRep()->getNameSpace();