Fix #35473: Using Redo panel in View3D after Grease Pencil action moves GP layer to that area

Remove REGISTER flag from GP draw operator, so redo wouldn't screw up regions.
This commit is contained in:
Sergey Sharybin
2013-05-28 11:44:35 +00:00
parent 81ba62e1e9
commit 285137cefb

View File

@@ -2051,7 +2051,7 @@ void GPENCIL_OT_draw(wmOperatorType *ot)
ot->poll = gpencil_draw_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING;
ot->flag = OPTYPE_UNDO | OPTYPE_BLOCKING;
/* settings for drawing */
ot->prop = RNA_def_enum(ot->srna, "mode", prop_gpencil_drawmodes, 0, "Mode", "Way to interpret mouse movements");