Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-10-13 21:34:11 +0300
committerAntonioya <blendergit@gmail.com>2018-10-13 21:34:36 +0300
commitb8327ee129d8ab0ccaaa387dcaf92bc43e934bcb (patch)
treea6c8c752751c677add0d6ff76b18c30154b5a443 /release
parentdd6bf3f84a9137affbcd8ba0fc957c32b8c0aff7 (diff)
GP: Remove Layer order userprefs parameter
After a lot of discussion about this option (see 18f117594004) we have decided set always the order of GP layers in 2D mode (Top->Down) and remove the parameter from User Preferences screen. Internally all works equal, but in the UI the list is inverted. The filter buttons to reverse the list or sort alphabetically have been removed because these buttons are not logic in this context.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_gpencil.py5
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py5
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py4
3 files changed, 2 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 184440a3400..b53e8c62599 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -125,16 +125,13 @@ class DATA_PT_gpencil_datapanel(Panel):
self.draw_layers(context, layout, gpd)
def draw_layers(self, context, layout, gpd):
- userpref = context.user_preferences
- edit = userpref.edit
- reverse = edit.use_grease_pencil_reverse_layers
row = layout.row()
col = row.column()
layer_rows = 7
col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index",
- rows=layer_rows, reverse=reverse)
+ rows=layer_rows, reverse=True)
col = row.column()
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index f40307b5b11..0f68b16f71a 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -352,15 +352,12 @@ class TOPBAR_PT_gpencil_layers(Panel):
self.draw_layers(context, layout, gpd)
def draw_layers(self, context, layout, gpd):
- userpref = context.user_preferences
- edit = userpref.edit
- reverse = edit.use_grease_pencil_reverse_layers
row = layout.row()
col = row.column()
layer_rows = 10
col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index",
- rows=layer_rows, reverse=reverse)
+ rows=layer_rows, reverse=True)
col = row.column()
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 1516494abbc..420fa656b85 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -274,10 +274,6 @@ class USERPREF_PT_edit(Panel):
col.prop(edit, "grease_pencil_euclidean_distance", text="Euclidean Distance")
col.separator()
- col.label(text="Grease Pencil:")
- col.prop(edit, "use_grease_pencil_reverse_layers", text="Layers order Top-Down")
- col.separator()
-
col.label(text="Annotations:")
sub = col.row()
sub.prop(edit, "grease_pencil_default_color", text="Default Color")