show send single object even in non-render scene
parent
2f4afd7584
commit
c8e576b7e7
5
ui.py
5
ui.py
|
@ -230,9 +230,8 @@ class GPEXP_PT_gp_dopesheet_ui(Panel):
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.label(text='Whole Objects:')
|
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'
|
||||||
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=txt).mode='SELECTED'
|
|
||||||
col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text='All Visible GP To Render').mode='ALL'
|
col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text='All Visible GP To Render').mode='ALL'
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
Loading…
Reference in New Issue