Fix T87094: Transforming geometry instances component is broken

Caused by an incorrect transformation order in cleanup commit
rBd037fef3bd1dc2e. The fix is to simply reverse the order.
This commit is contained in:
Hans Goudey 2021-03-31 11:32:52 -05:00
parent 94bfb1ab62
commit 46ee9b599a
Notes: blender-bot 2023-02-14 09:33:11 +01:00
Referenced by issue #87094, Transform node after Point Instance causes issues
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static void transform_instances(InstancesComponent &instances,
else {
const float4x4 matrix = float4x4::from_loc_eul_scale(translation, rotation, scale);
for (float4x4 &transform : transforms) {
transform = transform * matrix;
transform = matrix * transform;
}
}
}