diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-16 18:14:50 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-16 18:40:30 +0300 |
commit | 94fba47513239a2ea20722d7d68b19e7e69e6b26 (patch) | |
tree | 9a64a84d583e628eeba29f4fb76df9411711cb3e /source/blender/editors/curve | |
parent | 9e307117f8399eb84f1c4932a1f577ecdd0c8a2d (diff) |
Cleanup: use explicit enum type for duplicate option of `BKE_object_duplicate`
Using enum type itself in implementations, and uint in headers (as using
enums types in headers is a pain when enum are not defined and used in a
single same header file...).
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 4e1c07af001..82f5d99aa47 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1432,7 +1432,7 @@ static int separate_exec(bContext *C, wmOperator *op) /* 2. Duplicate the object and data. */ /* Take into account user preferences for duplicating actions. */ - short dupflag = (U.dupflag & USER_DUP_ACT); + const eDupli_ID_Flags dupflag = (U.dupflag & USER_DUP_ACT); newbase = ED_object_add_duplicate(bmain, scene, view_layer, oldbase, dupflag); DEG_relations_tag_update(bmain); |