Fix T39053: Replace mesh actuator does not replace material (only mesh)

The replace mesh actuator was reconverting the mesh data which causes
conflicts with the LoD code. Instead, we just look for an already
converted mesh, which should already be in the scene.
This commit is contained in:
Mitchell Stokes
2014-06-02 18:52:13 -07:00
parent 2645660bed
commit 6c9dd174a8

View File

@@ -514,15 +514,7 @@ void BL_ConvertActuators(const char* maggiename,
break;
case ACT_EDOB_REPLACE_MESH:
{
RAS_MeshObject *tmpmesh = NULL;
if (editobact->me)
tmpmesh = BL_ConvertMesh(
editobact->me,
blenderobject,
scene,
converter,
false
);
RAS_MeshObject *tmpmesh = converter->FindGameMesh(editobact->me);
KX_SCA_ReplaceMeshActuator* tmpreplaceact = new KX_SCA_ReplaceMeshActuator(
gameobj,