[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36415] trunk/blender/source/blender/ modifiers/intern/MOD_warp.c: warp modifier, using negative strength inverts the transformation matrix but the location it gave wasnt useful when rotation was used too , just negate the translation.
Campbell Barton
ideasman42 at gmail.com
Sun May 1 18:07:18 CEST 2011
Revision: 36415
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36415
Author: campbellbarton
Date: 2011-05-01 16:07:18 +0000 (Sun, 01 May 2011)
Log Message:
-----------
warp modifier, using negative strength inverts the transformation matrix but the location it gave wasnt useful when rotation was used too, just negate the translation.
Modified Paths:
--------------
trunk/blender/source/blender/modifiers/intern/MOD_warp.c
Modified: trunk/blender/source/blender/modifiers/intern/MOD_warp.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_warp.c 2011-05-01 15:16:59 UTC (rev 36414)
+++ trunk/blender/source/blender/modifiers/intern/MOD_warp.c 2011-05-01 16:07:18 UTC (rev 36415)
@@ -198,8 +198,14 @@
unit_m4(mat_unit);
if(strength < 0.0f) {
+ float loc[3];
strength = -strength;
+
+ /* inverted location is not useful, just use the negative */
+ copy_v3_v3(loc, mat_final[3]);
invert_m4(mat_final);
+ negate_v3_v3(mat_final[3], loc);
+
}
weight= strength;
More information about the Bf-blender-cvs
mailing list