diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-11-13 15:17:17 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-11-13 17:21:15 +0300 |
commit | e9b955b99cd3cde127b52bff8c4559e2d57eeeb0 (patch) | |
tree | 1bdc8ebdada1b23948ef59c5751ca6f43f2fe636 /source/blender/editors/include | |
parent | 50ccf346f0b8bbf91811a88ba5f31a85dcab8467 (diff) |
GPencil: Remove ID from operators to fix T82597
Instead to use the ID of the object, now the parameter is an Enum with Selected object or New.
If use selected mode, the first grease pencil object selected is used. If none of the selected objects is a grease pencil object, a new object is created.
Small cleanup changes to the original patch.
Differential Revision: https://developer.blender.org/D9529
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 398a1630cf6..48d323c5d57 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -79,6 +79,12 @@ typedef enum eGP_ReprojectModes { GP_REPROJECT_KEEP, } eGP_ReprojectModes; +/* Target object modes. */ +typedef enum eGP_TargetObjectMode { + GP_TARGET_OB_NEW = 0, + GP_TARGET_OB_SELECTED = 1, +} eGP_TargetObjectMode; + /* ------------- Grease-Pencil Runtime Data ---------------- */ /* Temporary 'Stroke Point' data (2D / screen-space) |