Tool System: add back layer selector

This was removed in 1b0c1c551a since most settings changes the
current stroke, however the layer selector is used for the next stroke.
This commit is contained in:
Campbell Barton
2018-10-10 11:10:13 +11:00
parent 1dd3b93d2f
commit 43f46bb664

View File

@@ -203,8 +203,14 @@ def _defs_annotate_factory():
class _defs_annotate:
@staticmethod
def draw_settings_common(context, layout, tool):
ts = context.tool_settings
if type(context.gpencil_data_owner) is bpy.types.Object:
gpd = context.scene.grease_pencil
else:
gpd = context.gpencil_data
if gpd is not None:
layout.prop(gpd.layers, "active_note", text="")
ts = context.tool_settings
space_type = tool.space_type
if space_type == 'VIEW_3D':
layout.separator()