diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-06-01 19:23:16 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-06-01 19:25:12 +0300 |
commit | 129ea355c8b77a24d6cd27e3180c2caa2c8da224 (patch) | |
tree | 3ba81d6d4219a08266f978c37e52cc4a37084c85 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | bff98414653a9ce1a400ea697621e81490acd684 (diff) |
GPencil: Add support to name new layer when moving to layer
To make it consistent with collections, now it's possible to name the new layer created using the `Move to Layer` option.
Differential Revision: https://developer.blender.org/D15092
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 f186fca0849..0f1652b9813 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -250,6 +250,7 @@ class GPENCIL_MT_move_to_layer(Menu): layout.separator() + layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("gpencil.move_to_layer", text="New Layer", icon='ADD').layer = -1 |