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:
parent
ce558a46c1
commit
ff44429421
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user