show active layer obj conflict in ui

0.6.3

- fix: show in ui when there is an active dopesheet layer that is not in active object
main
Pullusb 2021-10-27 18:53:39 +02:00
parent e64575b60f
commit 1f551da12e
3 changed files with 10 additions and 3 deletions

View File

@ -14,6 +14,10 @@ Activate / deactivate layer opaticty according to prefix
Activate / deactivate all masks using MA layers
-->
0.6.3
- fix: show in ui when there is an active dopesheet layer that is not in active object
0.6.2
- fix: problem sending all visible GP

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "GP Render",
"description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou",
"version": (0, 6, 2),
"version": (0, 6, 3),
"blender": (2, 93, 0),
"location": "View3D",
"warning": "",

7
ui.py
View File

@ -169,8 +169,11 @@ class GPEXP_PT_gp_dopesheet_ui(Panel):
row = layout.row()
row.label(text=f'Multiple users ({context.object.data.users})', icon='ERROR')
row.operator("wm.call_menu", text="", icon='QUESTION').name = "GPEXP_MT_multi_user_doc"
layout.label(text=f'viewlayer: {context.object.data.layers.active.viewlayer_render}')
if context.object.data.layers.active:
layout.label(text=f'viewlayer: {context.object.data.layers.active.viewlayer_render}')
else:
layout.label(text=f'No active layer found')
layout.label(text=f'(Active dopesheet layer not in active obj)')
## On layers
if context.object and context.object.type == 'GPENCIL':