diff options
author | Julian Eisel <julian@blender.org> | 2020-09-18 19:03:47 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-18 19:05:32 +0300 |
commit | ff44429421a183b4749dc777df76dde168090a3f (patch) | |
tree | 8fc73afa11e1e9bfaffa54054fa6d7594629beef /source/blender/editors/animation/anim_markers.c | |
parent | ce558a46c103cfdc99972ff3e06a430f28874757 (diff) |
Fix warning printed when duplicating marker
Steps to reproduce were:
* Create a marker in the timeline
* With the mouse over the marker region, press Shift+D
The function for moving markers was reused and had handling specific to
tweak events. This is not relevant in case of duplicating markers.
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 3bfa3b9d5be..6298ae16d8b 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -863,7 +863,9 @@ static void ed_marker_move_exit(bContext *C, wmOperator *op) static int ed_marker_move_invoke(bContext *C, wmOperator *op, const wmEvent *event) { - bool tweak = RNA_boolean_get(op->ptr, "tweak"); + const bool tweak = RNA_struct_find_property(op->ptr, "tweak") && + RNA_boolean_get(op->ptr, "tweak"); + if (tweak) { ARegion *region = CTX_wm_region(C); View2D *v2d = ®ion->v2d; |