fix draw cam with multi cams

2.2.2

- fixed: draw_cam data not changed when working with multiple camera in a shot
gpv2
Pullusb 2023-02-23 19:15:55 +01:00
parent 8e223b9f3a
commit eaf9c3b22f
3 changed files with 9 additions and 2 deletions

View File

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

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

View File

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