diff --git a/CHANGELOG.md b/CHANGELOG.md index 3547d3d..e6a0cfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +2.2.2 + +- fixed: draw_cam data not changed when working with multiple camera in a shot + 2.2.1 - added: class View3D to calculate area 3d related coordinates diff --git a/OP_helpers.py b/OP_helpers.py index 47322de..b9e5913 100644 --- a/OP_helpers.py +++ b/OP_helpers.py @@ -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 diff --git a/__init__.py b/__init__.py index a46be09..fa40e4c 100755 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ bl_info = { "name": "GP toolbox", "description": "Tool set for Grease Pencil in animation production", "author": "Samuel Bernou, Christophe Seux", -"version": (2, 2, 1), +"version": (2, 2, 2), "blender": (3, 0, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "",