forked from bartvdbraak/blender
Fix for deprecation warning regarding the reverse order of matrix-vector
multiplication operands.
This commit is contained in:
parent
6bc5d5258f
commit
1a4b7f8195
@ -207,7 +207,7 @@ def iter_distance_from_object(stroke, object, range_min, range_max):
|
|||||||
scene = Freestyle.getCurrentScene()
|
scene = Freestyle.getCurrentScene()
|
||||||
mv = scene.camera.matrix_world.copy() # model-view matrix
|
mv = scene.camera.matrix_world.copy() # model-view matrix
|
||||||
mv.invert()
|
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
|
normfac = range_max - range_min # normalization factor
|
||||||
it = stroke.strokeVerticesBegin()
|
it = stroke.strokeVerticesBegin()
|
||||||
while not it.isEnd():
|
while not it.isEnd():
|
||||||
|
Loading…
Reference in New Issue
Block a user