diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-08-17 17:51:35 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-08-17 17:51:35 +0300 |
commit | ad43262fdb6ac6f0cc01a56c1316912f3018d788 (patch) | |
tree | 54e0eaead8db7dc17d8360f8412594126af260e4 | |
parent | cb7f7b9abd1a45e5fc80df60bb20c5f43e45ab5e (diff) |
BGE: Fix T45817 Convert curve object in group instance.
Now group instance conversion allow unconverted object like curve, meta ball ect…
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index 3d94b029d8b..9664e2f6d2d 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -2055,14 +2055,13 @@ void BL_ConvertBlenderObjects(struct Main* maggie, converter, libloading); - /* Insert object to the constraint game object list - * so we can check later if there is a instance in the scene or - * an instance and its actual group definition. */ - convertedlist.insert((KX_GameObject*)gameobj->AddRef()); - bool isInActiveLayer = false; - if (gameobj) - { + if (gameobj) { + /* Insert object to the constraint game object list + * so we can check later if there is a instance in the scene or + * an instance and its actual group definition. */ + convertedlist.insert((KX_GameObject*)gameobj->AddRef()); + /* macro calls object conversion funcs */ BL_CONVERTBLENDEROBJECT_SINGLE; |