BGE: Fix T45817 Convert curve object in group instance.

Now group instance conversion allow unconverted object like curve, meta ball ect…
This commit is contained in:
Porteries Tristan 2015-08-17 16:51:35 +02:00
parent cb7f7b9abd
commit ad43262fdb
Notes: blender-bot 2023-02-14 08:45:15 +01:00
Referenced by issue #45817, BGE Crash with group instanced curve objects
1 changed files with 6 additions and 7 deletions

View File

@ -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;