[Bf-blender-cvs] [ae1cce7831c] greasepencil-object: WIP: Move points in local space

Antonio Vazquez noreply at git.blender.org
Thu Aug 24 12:33:45 CEST 2017


Commit: ae1cce7831c228a5c2983617df315f32ade971c1
Author: Antonio Vazquez
Date:   Thu Aug 24 11:23:45 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBae1cce7831c228a5c2983617df315f32ade971c1

WIP: Move points in local space

Still  a problem with manipulator and axis feedback lines that are not rotated to local space

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

M	source/blender/editors/transform/transform_conversions.c

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

diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 3c0947f2a3a..14a92e74737 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -7919,6 +7919,9 @@ static void createTransGPencil(bContext *C, TransInfo *t)
 
 			/* calculate difference matrix */
 			ED_gpencil_parent_location(obact, gpd, gpl, diff_mat);
+			if (t->current_orientation == V3D_MANIP_LOCAL) {
+				unit_m4(diff_mat);
+			}
 			/* undo matrix */
 			invert_m4_m4(inverse_diff_mat, diff_mat);



More information about the Bf-blender-cvs mailing list