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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user