diff --git a/ui.py b/ui.py index bdbbc92..20b5664 100644 --- a/ui.py +++ b/ui.py @@ -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()