forked from bartvdbraak/blender
GPencil: Remove Panel Grease Pencil and move Use Lights to Visibility
It was too much to have a panel for that.
This commit is contained in:
parent
d8897bed99
commit
52c0742560
@ -396,26 +396,9 @@ class OBJECT_PT_visibility(ObjectButtonsPanel, Panel):
|
|||||||
col = flow.column()
|
col = flow.column()
|
||||||
col.prop(ob, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
|
col.prop(ob, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
|
||||||
|
|
||||||
|
if context.object.type == 'GPENCIL':
|
||||||
class OBJECT_PT_greasepencil_light(ObjectButtonsPanel, Panel):
|
col = flow.column()
|
||||||
bl_label = "Grease Pencil"
|
col.prop(ob, "use_grease_pencil_lights", toggle=False)
|
||||||
bl_options = {'DEFAULT_CLOSED'}
|
|
||||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, context):
|
|
||||||
return (context.object) and (context.engine in cls.COMPAT_ENGINES) and (context.object.type == 'GPENCIL')
|
|
||||||
|
|
||||||
def draw(self, context):
|
|
||||||
layout = self.layout
|
|
||||||
layout.use_property_split = True
|
|
||||||
|
|
||||||
flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False)
|
|
||||||
layout = self.layout
|
|
||||||
ob = context.object
|
|
||||||
|
|
||||||
col = flow.column()
|
|
||||||
col.prop(ob, "use_grease_pencil_lights", toggle=False)
|
|
||||||
|
|
||||||
|
|
||||||
class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel):
|
class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel):
|
||||||
@ -438,7 +421,6 @@ classes = (
|
|||||||
OBJECT_PT_display,
|
OBJECT_PT_display,
|
||||||
OBJECT_PT_display_bounds,
|
OBJECT_PT_display_bounds,
|
||||||
OBJECT_PT_visibility,
|
OBJECT_PT_visibility,
|
||||||
OBJECT_PT_greasepencil_light,
|
|
||||||
OBJECT_PT_custom_props,
|
OBJECT_PT_custom_props,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user