diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py index ef53f363b10..6d20fa790f1 100644 --- a/release/scripts/freestyle/style_modules/parameter_editor.py +++ b/release/scripts/freestyle/style_modules/parameter_editor.py @@ -207,7 +207,7 @@ def iter_distance_from_object(stroke, object, range_min, range_max): 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():