fix remaining crash from [#27035] 3 problems: crash and enum "REGION" not found in...
[blender-staging.git] / source / blender / editors / transform / transform_conversions.c
index fc57bad35b4b073362c69242f56d9d9a16795fd6..8d37b7aeabb807ab9c1f56a4a0bb03a282b142f9 100644 (file)
@@ -5323,7 +5323,7 @@ void createTransData(bContext *C, TransInfo *t)
                        sort_trans_data_dist(t);
                }
 
                        sort_trans_data_dist(t);
                }
 
-               if (t->ar->regiontype == RGN_TYPE_WINDOW)
+               if ((t->spacetype == SPACE_VIEW3D) && (t->ar->regiontype == RGN_TYPE_WINDOW))
                {
                        View3D *v3d = t->view;
                        RegionView3D *rv3d = CTX_wm_region_view3d(C);
                {
                        View3D *v3d = t->view;
                        RegionView3D *rv3d = CTX_wm_region_view3d(C);