Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-05-12 11:56:28 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-05-12 11:57:39 +0300
commitae00e42bc291c5ff3914ff604892f3d79eaa999c (patch)
tree3868bd0db9d2323133885e320ffae9dcd25d607a /source/blender/modifiers
parent20e561dd6a2eaf2ae8b93253f1d526460367e287 (diff)
Fix T44677: Normal Edit Modifier Radial Mode broken with target object.
Very stupid mistake, odd nobody hit this earlier... :/
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_normal_edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_normal_edit.c b/source/blender/modifiers/intern/MOD_normal_edit.c
index 80636986583..8315f61c132 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;