show send single object even in non-render scene

main
pullusb 2023-06-27 17:28:36 +02:00
parent 2f4afd7584
commit c8e576b7e7
1 changed files with 2 additions and 3 deletions

5
ui.py
View File

@ -230,9 +230,8 @@ class GPEXP_PT_gp_dopesheet_ui(Panel):
col = layout.column()
col.label(text='Whole Objects:')
if context.scene.name != 'Render':
txt = f'{len([o for o in context.selected_objects if o.type == "GPENCIL" and o.select_get()])} Selected Object(s) To Render'
col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text=txt).mode='SELECTED'
txt = f'{len([o for o in context.selected_objects if o.type == "GPENCIL" and o.select_get()])} Selected Object(s) To Render'
col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text=txt).mode='SELECTED'
col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text='All Visible GP To Render').mode='ALL'
layout.separator()