[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36137] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for the Distance from Object modifier.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Wed Apr 13 00:30:18 CEST 2011


Revision: 36137
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36137
Author:   kjym3
Date:     2011-04-12 22:30:18 +0000 (Tue, 12 Apr 2011)
Log Message:
-----------
Fix for the Distance from Object modifier.  The problem was
reported by ikeahloe.  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	2011-04-12 22:17:15 UTC (rev 36136)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2011-04-12 22:30:18 UTC (rev 36137)
@@ -204,7 +204,8 @@
 
 def iter_distance_from_object(stroke, object, range_min, range_max):
     scene = Freestyle.getCurrentScene()
-    mv = scene.camera.matrix_world.copy().invert() # model-view matrix
+    mv = scene.camera.matrix_world.copy() # model-view matrix
+    mv.invert()
     loc = object.location * mv # loc in the camera coordinate
     normfac = range_max - range_min # normalization factor
     it = stroke.strokeVerticesBegin()




More information about the Bf-blender-cvs mailing list