Fix [#37324] Crash, calling Warp operator in Outliner

Warp needs a valid 3DView region...
This commit is contained in:
Bastien Montagne 2013-11-05 16:20:06 +00:00
parent 6c4b06a46d
commit c8e2b54ce2
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ static void TRANSFORM_OT_warp(struct wmOperatorType *ot)
ot->exec = transform_exec;
ot->modal = transform_modal;
ot->cancel = transform_cancel;
ot->poll = ED_operator_screenactive;
ot->poll = ED_operator_region_view3d_active;
RNA_def_float_rotation(ot->srna, "value", 1, NULL, -FLT_MAX, FLT_MAX, "Angle", "", -M_PI * 2, M_PI * 2);