fix draw cam with multi cams

2.2.2

- fixed: draw_cam data not changed when working with multiple camera in a shot
This commit is contained in:
Pullusb
2023-02-23 19:15:55 +01:00
parent 8e223b9f3a
commit eaf9c3b22f
3 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -232,10 +232,13 @@ class GPTB_OT_draw_cam(bpy.types.Operator):
drawcam.lock_location = (True,True,True)
# drawcam.hide_viewport = True
context.scene.gptoolprops.drawcam_passepartout = maincam.data.show_passepartout
maincam.data.show_passepartout = False
drawcam.data = maincam.data # get data from parent
# Hide the other passepartout to let only the custom OpenGL one
maincam.data.show_passepartout = False
else:
# object cam
if created:
drawcam['maincam_name'] = context.scene.camera.name
drawcam.parent = act