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).
This commit is contained in:
Nathan Bowhay 2015-02-03 14:18:06 -08:00
parent 1372b4f600
commit 50f875a2f5

View file

@ -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";
}
//-----------------------------------------------------------------------------