[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16644] trunk/blender/source/gameengine/ Converter/BL_BlenderDataConversion.cpp: set the visibility state based on the objects render option in the outliner .
Campbell Barton
ideasman42 at gmail.com
Sun Sep 21 06:39:40 CEST 2008
Revision: 16644
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16644
Author: campbellbarton
Date: 2008-09-21 06:39:40 +0200 (Sun, 21 Sep 2008)
Log Message:
-----------
set the visibility state based on the objects render option in the outliner.
- saves adding UV's to faces just to set the invisibility option or having an logic bricks to set the visibility state.
Modified Paths:
--------------
trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp
Modified: trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp 2008-09-21 01:13:54 UTC (rev 16643)
+++ trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp 2008-09-21 04:39:40 UTC (rev 16644)
@@ -1601,6 +1601,8 @@
gameobj->SetPhysicsEnvironment(kxscene->GetPhysicsEnvironment());
gameobj->SetLayer(ob->lay);
gameobj->SetBlenderObject(ob);
+ /* set the visibility state based on the objects render option in the outliner */
+ if(ob->restrictflag & OB_RESTRICT_RENDER) gameobj->SetVisible(0, 0);
}
return gameobj;
}
More information about the Bf-blender-cvs
mailing list