[Bf-blender-cvs] [3988c5b93a9] blender2.8: GP: Expand topbar layers list

Antonioya noreply at git.blender.org
Thu Sep 27 22:11:01 CEST 2018


Commit: 3988c5b93a94494d40da620df71644f86f19c521
Author: Antonioya
Date:   Thu Sep 27 22:03:50 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3988c5b93a94494d40da620df71644f86f19c521

GP: Expand topbar layers list

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 36cd2093bef..ffe30cd0952 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -321,10 +321,7 @@ class TOPBAR_PT_gpencil_layers(Panel):
         row = layout.row()
 
         col = row.column()
-        if len(gpd.layers) >= 2:
-            layer_rows = 5
-        else:
-            layer_rows = 2
+        layer_rows = 10
         col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=layer_rows)
 
         col = row.column()



More information about the Bf-blender-cvs mailing list