forked from bartvdbraak/blender
GP: Expand topbar layers list
This commit is contained in:
parent
1bd81babbd
commit
3988c5b93a
@ -321,10 +321,7 @@ class TOPBAR_PT_gpencil_layers(Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
|
||||||
col = row.column()
|
col = row.column()
|
||||||
if len(gpd.layers) >= 2:
|
layer_rows = 10
|
||||||
layer_rows = 5
|
|
||||||
else:
|
|
||||||
layer_rows = 2
|
|
||||||
col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=layer_rows)
|
col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=layer_rows)
|
||||||
|
|
||||||
col = row.column()
|
col = row.column()
|
||||||
|
Loading…
Reference in New Issue
Block a user