[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39575] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for deprecation warning regarding the reverse order of matrix-vector

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sun Aug 21 02:02:55 CEST 2011


Revision: 39575
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39575
Author:   kjym3
Date:     2011-08-21 00:02:53 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Fix for deprecation warning regarding the reverse order of matrix-vector
multiplication operands.

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-08-20 21:17:58 UTC (rev 39574)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2011-08-21 00:02:53 UTC (rev 39575)
@@ -207,7 +207,7 @@
     scene = Freestyle.getCurrentScene()
     mv = scene.camera.matrix_world.copy() # model-view matrix
     mv.invert()
-    loc = object.location * mv # loc in the camera coordinate
+    loc = mv * object.location # 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