mirror of
https://github.com/Relintai/props.git
synced 2025-02-10 16:30:06 +01:00
Use the proper transform in _prop_preprocess for the meshes aswell.
This commit is contained in:
parent
db6171c48f
commit
5dd5db80ec
@ -545,10 +545,10 @@ void PropInstanceMerger::_prop_preprocess(Transform transform, const Ref<PropDat
|
|||||||
if (!mdr.is_valid())
|
if (!mdr.is_valid())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
_job->add_mesh(mesh_data, transform);
|
_job->add_mesh(mesh_data, t);
|
||||||
|
|
||||||
for (int j = 0; j < mdr->get_collision_shape_count(); ++j) {
|
for (int j = 0; j < mdr->get_collision_shape_count(); ++j) {
|
||||||
_job->add_collision_shape(mdr->get_collision_shape(j), transform * mdr->get_collision_shape_offset(j));
|
_job->add_collision_shape(mdr->get_collision_shape(j), t * mdr->get_collision_shape_offset(j));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user