Bugfix #20574: New 3D View regions were all had their 'type' set to 'RGN_TYPE_UI...
[blender-staging.git] / source / blender / editors / space_view3d / space_view3d.c
index fc67881367f96096339ac7042c568a6095687fdd..e9f118fb47a8fcefa6bb49593bf26aa7c12bf596 100644 (file)
@@ -230,7 +230,7 @@ static SpaceLink *view3d_new(const bContext *C)
        ar= MEM_callocN(sizeof(ARegion), "toolshelf for view3d");
        
        BLI_addtail(&v3d->regionbase, ar);
        ar= MEM_callocN(sizeof(ARegion), "toolshelf for view3d");
        
        BLI_addtail(&v3d->regionbase, ar);
-       ar->regiontype= RGN_TYPE_UI;
+       ar->regiontype= RGN_TYPE_TOOLS;
        ar->alignment= RGN_ALIGN_LEFT;
        ar->flag = RGN_FLAG_HIDDEN;
        
        ar->alignment= RGN_ALIGN_LEFT;
        ar->flag = RGN_FLAG_HIDDEN;
        
@@ -238,7 +238,7 @@ static SpaceLink *view3d_new(const bContext *C)
        ar= MEM_callocN(sizeof(ARegion), "tool properties for view3d");
        
        BLI_addtail(&v3d->regionbase, ar);
        ar= MEM_callocN(sizeof(ARegion), "tool properties for view3d");
        
        BLI_addtail(&v3d->regionbase, ar);
-       ar->regiontype= RGN_TYPE_UI;
+       ar->regiontype= RGN_TYPE_TOOL_PROPS;
        ar->alignment= RGN_ALIGN_BOTTOM|RGN_SPLIT_PREV;
        ar->flag = RGN_FLAG_HIDDEN;
        
        ar->alignment= RGN_ALIGN_BOTTOM|RGN_SPLIT_PREV;
        ar->flag = RGN_FLAG_HIDDEN;