diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-10 18:42:40 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-10 22:18:15 +0300 |
commit | 18d354a5eb4be975c11cedfab4b17f3ef6fd33ff (patch) | |
tree | 8c3b330fad30d071238c7e3eb8d1a5ef34accf0a /release | |
parent | 2debee96ec51b4a6e4f06bc6a5cb3846244725ae (diff) |
GP: Remove Object Onion Skin switch
It was confusing to have two switches.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_gpencil.py | 8 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py index 5a64389e5c6..56612c3aa1b 100644 --- a/release/scripts/startup/bl_ui/properties_data_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py @@ -240,18 +240,14 @@ class DATA_PT_gpencil_onionpanel(Panel): def poll(cls, context): return bool(context.active_gpencil_layer) - @staticmethod - def draw_header(self, context): - self.layout.prop(context.gpencil_data, "use_onion_skinning", text="") - def draw(self, context): gpd = context.gpencil_data layout = self.layout layout.use_property_split = True - layout.enabled = gpd.use_onion_skinning and gpd.users <= 1 + layout.enabled = gpd.users <= 1 - if gpd.use_onion_skinning and gpd.users > 1: + if gpd.users > 1: layout.label(text="Multiuser datablock not supported", icon='ERROR') GreasePencilOnionPanel.draw_settings(layout, gpd) diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 1bedc2c4f97..fff4a063ef8 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -855,7 +855,6 @@ class GreasePencilOnionPanel: layout.prop(gp, "use_ghosts_always", text="View In Render") col = layout.column(align=True) - col.active = gp.use_onion_skinning col.prop(gp, "use_onion_fade", text="Fade") if hasattr(gp, "use_onion_loop"): # XXX sub = layout.column() @@ -995,7 +994,6 @@ class GPENCIL_UL_layer(UIList): icon='ONIONSKIN_ON' if gpl.use_onion_skinning else 'ONIONSKIN_OFF', emboss=False, ) - subrow.active = gpd.use_onion_skinning elif self.layout_type == 'GRID': layout.alignment = 'CENTER' layout.label( |