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:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user