diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-04-13 02:30:18 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-04-13 02:30:18 +0400 |
commit | 3e11ad64d5ad9d4cadc37e255daeeee1b0ea70e6 (patch) | |
tree | f812c64003909c61b82e743b648c7db68c592545 /release | |
parent | 4ee5dcf7ab6fcc044be478e34538a4564e0e9456 (diff) |
Fix for the Distance from Object modifier. The problem was
reported by ikeahloe. Thanks!
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/freestyle/style_modules/parameter_editor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py index 43ddf2c0463..22f8bc7beaa 100644 --- a/release/scripts/freestyle/style_modules/parameter_editor.py +++ b/release/scripts/freestyle/style_modules/parameter_editor.py @@ -204,7 +204,8 @@ class ThicknessDistanceFromCameraShader(CurveMappingModifier): 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() |