Commit: ae00e42bc291c5ff3914ff604892f3d79eaa999c
Author: Bastien Montagne
Date: Tue May 12 10:56:28 2015 +0200
Branches: master
https://developer.blender.org/rBae00e42bc291c5ff3914ff604892f3d79eaa999c
Fix T44677: Normal Edit Modifier Radial Mode broken with target object.
Very stupid mistake, odd nobody hit this earlier... :/
===================================================================
M source/blender/modifiers/intern/MOD_normal_edit.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_normal_edit.c
b/source/blender/modifiers/intern/MOD_normal_edit.c
index 8063698..8315f61 100644
--- a/source/blender/modifiers/intern/MOD_normal_edit.c
+++ b/source/blender/modifiers/intern/MOD_normal_edit.c
@@ -80,10 +80,13 @@ static void generate_vert_coordinates(
}
if (ob_center) {
+ float inv_obmat[4][4];
+
/* Translate our coordinates so that center of ob_center is at
(0, 0, 0). */
/* Get ob_center (world) coordinates in ob local coordinates.
* No need to take into accound ob_center's space here, see
T44027. */
- mul_v3_m4v3(diff, ob->obmat, ob_center->obmat[3]);
+ invert_m4_m4(inv_obmat, ob->obmat);
+ mul_v3_m4v3(diff, inv_obmat, ob_center->obmat[3]);
negate_v3(diff);
do_diff = true;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs