diff options
Diffstat (limited to 'source/gameengine/Converter/BL_BlenderDataConversion.cpp')
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index 840df144778..0d9ad087c05 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -1868,8 +1868,15 @@ void BL_ConvertBlenderObjects(struct Main* maggie, rendertools, converter, blenderscene); - - if (gameobj) + + bool isInActiveLayer = (blenderobject->lay & activeLayerBitInfo) !=0; + bool addobj=true; + + if (converter->addInitFromFrame) + if (!isInActiveLayer) + addobj=false; + + if (gameobj&&addobj) { MT_Point3 posPrev; MT_Matrix3x3 angor; @@ -1920,8 +1927,6 @@ void BL_ConvertBlenderObjects(struct Main* maggie, Material *mat = give_current_material(blenderobject, 1); if(mat) BL_ConvertMaterialIpos(mat, gameobj, converter); - bool isInActiveLayer = (blenderobject->lay & activeLayerBitInfo) !=0; - sumolist->Add(gameobj->AddRef()); BL_ConvertProperties(blenderobject,gameobj,timemgr,kxscene,isInActiveLayer); |