diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-05 20:20:06 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-05 20:20:06 +0400 |
commit | c8e2b54ce251ce3c67f3e2443118655835ddd8df (patch) | |
tree | 35a595d5440b72667c173ac7b1a0c9fd4855de74 | |
parent | 6c4b06a46d919c96bb31c2de30ba8368cbbf788c (diff) |
Fix [#37324] Crash, calling Warp operator in Outliner
Warp needs a valid 3DView region...
-rw-r--r-- | source/blender/editors/transform/transform_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c index 4b5ae8963d5..8f31e49bfe9 100644 --- a/source/blender/editors/transform/transform_ops.c +++ b/source/blender/editors/transform/transform_ops.c @@ -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); |