[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27789] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix #20717: sculpt not working with ortho view + certain object scale.
Brecht Van Lommel
brecht at blender.org
Sat Mar 27 13:35:15 CET 2010
Revision: 27789
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27789
Author: blendix
Date: 2010-03-27 13:35:14 +0100 (Sat, 27 Mar 2010)
Log Message:
-----------
Fix #20717: sculpt not working with ortho view + certain object scale.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2010-03-27 12:16:24 UTC (rev 27788)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2010-03-27 12:35:14 UTC (rev 27789)
@@ -1852,14 +1852,14 @@
sculpt_stroke_modifiers_check(C, ss);
viewline(vc->ar, vc->v3d, mval, ray_start, ray_end);
- sub_v3_v3v3(ray_normal, ray_end, ray_start);
- dist= normalize_v3(ray_normal);
invert_m4_m4(obimat, ss->ob->obmat);
mul_m4_v3(obimat, ray_start);
- mul_mat3_m4_v3(obimat, ray_normal);
- normalize_v3(ray_normal);
+ mul_m4_v3(obimat, ray_end);
+ sub_v3_v3v3(ray_normal, ray_end, ray_start);
+ dist= normalize_v3(ray_normal);
+
srd.ss = vc->obact->sculpt;
srd.ray_start = ray_start;
srd.ray_normal = ray_normal;
More information about the Bf-blender-cvs
mailing list