~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/gameengine/Converter/BL_BlenderDataConversion.cpp

  • Committer: Dietrich Bollmann
  • Date: 2009-04-26 06:25:14 UTC
  • mfrom: (184.1.520)
  • Revision ID: diresu@web.de-20090426062514-ly27wepl1t5d7p8s
Update to state of blender repository from 2009-04-26 revision 19927.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: BL_BlenderDataConversion.cpp 19911 2009-04-23 21:19:42Z ben2610 $
 
2
 * $Id: BL_BlenderDataConversion.cpp 19923 2009-04-25 12:20:59Z ben2610 $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
1298
1298
                                gameobj->SetGraphicController(ctrl);
1299
1299
                                ctrl->setNewClientInfo(gameobj->getClientInfo());
1300
1300
                                ctrl->setLocalAabb(localAabbMin, localAabbMax);
1301
 
                                if (isActive)
 
1301
                                if (isActive) {
 
1302
                                        // add first, this will create the proxy handle
1302
1303
                                        env->addCcdGraphicController(ctrl);
 
1304
                                        // update the mesh if there is a deformer, this will also update the bounding box for modifiers
 
1305
                                        RAS_Deformer* deformer = gameobj->GetDeformer();
 
1306
                                        if (deformer)
 
1307
                                                deformer->UpdateBuckets();
 
1308
                                }
1303
1309
                        }
1304
1310
                        break;
1305
1311
#endif