diff options
-rw-r--r-- | source/blender/editors/util/numinput.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 42604338ef4..9cbea14d10a 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -48,6 +48,12 @@ #include "UI_interface.h" +/* NumInput.flag */ +enum { + /* (1 << 8) and below are reserved for public flags! */ + NUM_EDIT_FULL = (1 << 9), /* Enable full editing, with units and math operators support. */ +}; + /* NumInput.val_flag[] */ enum { /* (1 << 8) and below are reserved for public flags! */ @@ -55,7 +61,6 @@ enum { NUM_INVALID = (1 << 10), /* Current expression for this value is invalid. */ NUM_NEGATE = (1 << 11), /* Current expression's result has to be negated. */ NUM_INVERSE = (1 << 12), /* Current expression's result has to be inverted. */ - NUM_EDIT_FULL = (1 << 13), /* Enable full editing, with units and math operators support. */ }; /* ************************** Functions *************************** */ @@ -337,6 +342,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event) case PADASTERKEY: if (!(n->flag & NUM_EDIT_FULL)) { n->flag |= NUM_EDIT_FULL; + n->val_flag[idx] |= NUM_EDITED; return true; } else if (event->ctrl) { |