forked from blender/blender
main sync #3
@ -54,6 +54,9 @@ class SCENE_OT_freestyle_fill_range_by_selection(Operator):
|
|||||||
# Find the reference object
|
# Find the reference object
|
||||||
if m.type == 'DISTANCE_FROM_CAMERA':
|
if m.type == 'DISTANCE_FROM_CAMERA':
|
||||||
ref = scene.camera
|
ref = scene.camera
|
||||||
|
if ref is None:
|
||||||
|
self.report({'ERROR'}, "No active camera in the scene")
|
||||||
|
return {'CANCELLED'}
|
||||||
matrix_to_camera = ref.matrix_world.inverted()
|
matrix_to_camera = ref.matrix_world.inverted()
|
||||||
elif m.type == 'DISTANCE_FROM_OBJECT':
|
elif m.type == 'DISTANCE_FROM_OBJECT':
|
||||||
if m.target is None:
|
if m.target is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user