ソースを参照

Fixed bug with comparison cases of getRenderEnabled

For some reason returning true/false rather that 1/0 from
_getRenderEnabled would cause errors in some comparison cases to see if
it was true or not (would treat it as if it was a string/word rather
than a bool or int).
Nathan Bowhay 10 年 前
コミット
50f875a2f5
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Engine/source/scene/sceneObject.cpp

+ 2 - 2
Engine/source/scene/sceneObject.cpp

@@ -720,9 +720,9 @@ const char* SceneObject::_getRenderEnabled( void* object, const char* data )
 {
    SceneObject* obj = reinterpret_cast< SceneObject* >( object );
    if( obj->mObjectFlags.test( RenderEnabledFlag ) )
-      return "true";
+      return "1";
    else
-      return "false";
+      return "0";
 }
 
 //-----------------------------------------------------------------------------