diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-09-16 18:32:46 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-09-16 18:33:34 +0300 |
commit | 716e712a8342fb9b27810ea01385aca65f7d7cd6 (patch) | |
tree | f79a33c55d2ae46ee887176d08ad3e73e4b74598 /source/blender/editors/armature | |
parent | 2aca1d85e6c5f360f9faf8b2e95d9c2c1b1390db (diff) |
Pose library sorting: return OPERATOR_CANCELLED when no-op
A no-op happens when trying to move the top pose further up, or the
bottom pose further down.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/pose_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c index f860614231e..b200aa2401b 100644 --- a/source/blender/editors/armature/pose_lib.c +++ b/source/blender/editors/armature/pose_lib.c @@ -770,7 +770,7 @@ static int poselib_move_exec(bContext *C, wmOperator *op) void *prev = marker->prev; if (prev == NULL) - return OPERATOR_FINISHED; + return OPERATOR_CANCELLED; BLI_remlink(&act->markers, marker); BLI_insertlinkbefore(&act->markers, prev, marker); @@ -779,7 +779,7 @@ static int poselib_move_exec(bContext *C, wmOperator *op) void *next = marker->next; if (next == NULL) - return OPERATOR_FINISHED; + return OPERATOR_CANCELLED; BLI_remlink(&act->markers, marker); BLI_insertlinkafter(&act->markers, next, marker); |