Fix for [#19562] Little plus icon in upper right missing when opening files from...
authorMatt Ebb <matt@mke3.net>
Wed, 11 Nov 2009 10:59:58 +0000 (10:59 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 11 Nov 2009 10:59:58 +0000 (10:59 +0000)
Now add the new sub-regions to all 3d views on file open

source/blender/blenloader/intern/readfile.c

index 1fa9090ba45274d63390eef14d76b5cfcc2236f2..4f63fdf07376df1eda0746b4b1cfb3c29c5c68ed 100644 (file)
@@ -5990,13 +5990,38 @@ static void area_add_window_regions(ScrArea *sa, SpaceLink *sl, ListBase *lb)
                                ar->regiontype= RGN_TYPE_UI;
                                ar->alignment= RGN_ALIGN_TOP;
                                break;
                                ar->regiontype= RGN_TYPE_UI;
                                ar->alignment= RGN_ALIGN_TOP;
                                break;
+                       case SPACE_VIEW3D:
+                               /* toolbar */
+                               ar= MEM_callocN(sizeof(ARegion), "toolbar for view3d");
+                               
+                               BLI_addtail(lb, ar);
+                               ar->regiontype= RGN_TYPE_UI;
+                               ar->alignment= RGN_ALIGN_LEFT;
+                               ar->flag = RGN_FLAG_HIDDEN;
+                               
+                               /* tool properties */
+                               ar= MEM_callocN(sizeof(ARegion), "tool properties for view3d");
+                               
+                               BLI_addtail(lb, ar);
+                               ar->regiontype= RGN_TYPE_UI;
+                               ar->alignment= RGN_ALIGN_BOTTOM|RGN_SPLIT_PREV;
+                               ar->flag = RGN_FLAG_HIDDEN;
+                               
+                               /* buttons/list view */
+                               ar= MEM_callocN(sizeof(ARegion), "buttons for view3d");
+                               
+                               BLI_addtail(lb, ar);
+                               ar->regiontype= RGN_TYPE_UI;
+                               ar->alignment= RGN_ALIGN_RIGHT;
+                               ar->flag = RGN_FLAG_HIDDEN;
 #if 0
                        case SPACE_BUTS:
                                /* context UI region */
                                ar= MEM_callocN(sizeof(ARegion), "area region from do_versions");
                                BLI_addtail(lb, ar);
 #if 0
                        case SPACE_BUTS:
                                /* context UI region */
                                ar= MEM_callocN(sizeof(ARegion), "area region from do_versions");
                                BLI_addtail(lb, ar);
-                               ar->regiontype= RGN_TYPE_CHANNELS;
-                               ar->alignment= RGN_ALIGN_TOP;
+                               ar->regiontype= RGN_TYPE_UI;
+                               ar->alignment= RGN_ALIGN_RIGHT;
+                               
                                break;
 #endif
                }
                                break;
 #endif
                }