mirror of
https://github.com/Relintai/props.git
synced 2024-11-14 10:17:30 +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())
|
||||
continue;
|
||||
|
||||
_job->add_mesh(mesh_data, transform);
|
||||
_job->add_mesh(mesh_data, t);
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user