diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-31 19:32:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-31 19:32:52 +0300 |
commit | 46ee9b599aeec6400bf6ff7d87431d71fb87a2e0 (patch) | |
tree | 756f598bf0087b659fe6f7afd71c4a3052a3f709 | |
parent | 94bfb1ab620add53d08cf123548e2146e5f3063a (diff) |
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.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_transform.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_transform.cc b/source/blender/nodes/geometry/nodes/node_geo_transform.cc index 83525aa0d22..2c05c98c9ba 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_transform.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_transform.cc @@ -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; } } } |