[Bf-blender-cvs] [3a2d8315d08] soc-2021-curves: Fixed bug with displacement when moving segment

dilithjay noreply at git.blender.org
Fri Aug 6 16:38:18 CEST 2021


Commit: 3a2d8315d0880c53bd78b6b15abac4dc83ace68d
Author: dilithjay
Date:   Fri Aug 6 20:06:28 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB3a2d8315d0880c53bd78b6b15abac4dc83ace68d

Fixed bug with displacement when moving segment

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

M	release/scripts/addons
M	source/blender/editors/curve/editcurve_pen.c
M	source/tools

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

diff --git a/release/scripts/addons b/release/scripts/addons
index 2aa81ec3365..aebb668f75b 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 2aa81ec3365c5ed2478f9783f78a38e77c0ef6c1
+Subproject commit aebb668f75b57ba7cbd8f8f8ad41f0ddb4f27389
diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index f1a7b1bc5ae..fc5e8c0f370 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -77,6 +77,10 @@ static void mouse_location_to_worldspace(const int mouse_loc[2],
 {
   mul_v3_m4v3(r_location, vc->obedit->obmat, depth);
   ED_view3d_win_to_3d_int(vc->v3d, vc->region, r_location, mouse_loc, r_location);
+
+  float imat[4][4];
+  invert_m4_m4(imat, vc->obedit->obmat);
+  mul_m4_v3(imat, r_location);
 }
 
 /* Move the handle of BezTriple to mouse based on the previously added point. */
diff --git a/source/tools b/source/tools
index c8579c5cf43..82e4b979ab4 160000
--- a/source/tools
+++ b/source/tools
@@ -1 +1 @@
-Subproject commit c8579c5cf43229843df505da9644b5b0b7201974
+Subproject commit 82e4b979ab424cad429a751a9a90c0e0c6ea077e



More information about the Bf-blender-cvs mailing list