[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24488] trunk/blender/source/blender/ blenloader/intern/readfile.c: Fix for previous commit, this is the correct way to implement this.
Matt Ebb
matt at mke3.net
Wed Nov 11 12:28:34 CET 2009
Revision: 24488
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24488
Author: broken
Date: 2009-11-11 12:28:33 +0100 (Wed, 11 Nov 2009)
Log Message:
-----------
Fix for previous commit, this is the correct way to implement this.
Modified Paths:
--------------
trunk/blender/source/blender/blenloader/intern/readfile.c
Modified: trunk/blender/source/blender/blenloader/intern/readfile.c
===================================================================
--- trunk/blender/source/blender/blenloader/intern/readfile.c 2009-11-11 10:59:58 UTC (rev 24487)
+++ trunk/blender/source/blender/blenloader/intern/readfile.c 2009-11-11 11:28:33 UTC (rev 24488)
@@ -5990,13 +5990,38 @@
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);
- ar->regiontype= RGN_TYPE_CHANNELS;
- ar->alignment= RGN_ALIGN_TOP;
+ ar->regiontype= RGN_TYPE_UI;
+ ar->alignment= RGN_ALIGN_RIGHT;
+
break;
#endif
}
@@ -10051,20 +10076,6 @@
ntree= ntree->id.next;
}
}
-
- {
- /* init (+) icons in 3d views */
- bScreen *screen;
- for(screen= main->screen.first; screen; screen= screen->id.next) {
- ScrArea *sa;
- for(sa= screen->areabase.first; sa; sa= sa->next) {
- if(sa && sa->spacetype==SPACE_VIEW3D) {
- view3d_has_buttons_region(sa);
- view3d_has_tools_region(sa);
- }
- }
- }
- }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
More information about the Bf-blender-cvs
mailing list