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.
This commit is contained in:
Julian Eisel 2020-09-18 18:03:47 +02:00
parent ce558a46c1
commit ff44429421
1 changed files with 3 additions and 1 deletions

View File

@ -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 = &region->v2d;