Fix for a bug in the Distance from Object modifiers.

The bug was reported by Jonathan Hudson, thanks!
This commit is contained in:
Tamito Kajiyama 2010-12-04 09:58:58 +00:00
parent a9e50bde82
commit 79547351fe

@ -205,7 +205,7 @@ 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
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():