code fix on operators and draw cam handler

2.0.5

- changed: redo panel for GP layer picker has better name and display active layer name
- changed: some operator id_name to expose "add shortcut" in context menu for some button
- fixed: error with draw_cam handler when no camera is active
This commit is contained in:
Pullusb
2022-10-07 02:20:28 +02:00
parent 43a28876d1
commit 8e3b3871e6
6 changed files with 29 additions and 17 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def draw_cam_frame_callback_2d():
context = bpy.context
if context.region_data.view_perspective != 'CAMERA':
return
if context.scene.camera.name != 'draw_cam':
if not context.scene.camera or context.scene.camera.name != 'draw_cam':
return
main_cam = context.scene.camera.parent