main sync #3

Merged
Patrick Busch merged 318 commits from blender/blender:main into main 2023-03-17 15:52:21 +01:00
Showing only changes of commit 02fb607520 - Show all commits

View File

@ -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: