Fix #115715 : Source transform is checked where result transform should be #115736

Manually merged
Campbell Barton merged 1 commits from Z-Map/blender:115715 into main 2023-12-05 08:04:12 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,8 @@ static IMesh meshes_to_imesh(Span<const Mesh *> meshes,
/* Allocate verts
* Skip the matrix multiplication for each point when there is no transform for a mesh,
* for example when the first mesh is already in the target space. (Note the logic
* directly above, which uses an identity matrix with a null input transform). */
if (obmats.is_empty() || obmats[mi] == float4x4::identity()) {
* directly above, which uses an identity matrix with an empty input transform). */
if (obmats.is_empty() || r_info->to_target_transform[mi] == float4x4::identity()) {
threading::parallel_for(vert_positions.index_range(), 2048, [&](IndexRange range) {
for (int i : range) {
float3 co = vert_positions[i];