[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33463] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for a bug in the Distance from Object modifiers.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sat Dec 4 10:58:59 CET 2010
Revision: 33463
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33463
Author: kjym3
Date: 2010-12-04 10:58:58 +0100 (Sat, 04 Dec 2010)
Log Message:
-----------
Fix for a bug in the Distance from Object modifiers.
The bug was reported by Jonathan Hudson, thanks!
Modified Paths:
--------------
branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
Modified: branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2010-12-04 06:25:36 UTC (rev 33462)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2010-12-04 09:58:58 UTC (rev 33463)
@@ -205,7 +205,7 @@
def iter_distance_from_object(stroke, object, range_min, range_max):
scene = Freestyle.getCurrentScene()
mv = scene.camera.matrix_world.copy().invert() # model-view matrix
- loc = mv * object.location # loc in the camera coordinate
+ loc = object.location * mv # loc in the camera coordinate
normfac = range_max - range_min # normalization factor
it = stroke.strokeVerticesBegin()
while not it.isEnd():
More information about the Bf-blender-cvs
mailing list