[Bf-blender-cvs] [9237b2019cc] blender-v2.92-release: Fix T84867: Transform node applies transforms in the wrong order

Sebastian Parborg noreply at git.blender.org
Thu Jan 21 12:41:11 CET 2021


Commit: 9237b2019cc385aa6edabb2ae1cd7647d103bcba
Author: Sebastian Parborg
Date:   Thu Jan 21 12:39:30 2021 +0100
Branches: blender-v2.92-release
https://developer.blender.org/rB9237b2019cc385aa6edabb2ae1cd7647d103bcba

Fix T84867: Transform node applies transforms in the wrong order

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_transform.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_transform.cc b/source/blender/nodes/geometry/nodes/node_geo_transform.cc
index 4fe61dff72d..84540c283ef 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_transform.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_transform.cc
@@ -109,7 +109,7 @@ static void transform_instances(InstancesComponent &instances,
     loc_eul_size_to_mat4(mat, translation, rotation, scale);
     for (int i = 0; i < positions.size(); i++) {
       loc_eul_size_to_mat4(instance_mat, positions[i], rotations[i], scales[i]);
-      mul_m4_m4_post(instance_mat, mat);
+      mul_m4_m4_pre(instance_mat, mat);
       mat4_decompose(positions[i], quaternion, scales[i], instance_mat);
       quat_to_eul(rotations[i], quaternion);
     }



More information about the Bf-blender-cvs mailing list