mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 18:43:48 +00:00
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:
parent
1372b4f600
commit
50f875a2f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue