[Bf-blender-cvs] [d7a063f1667] topbar: Merge branch 'blender2.8' into topbar

Julian Eisel noreply at git.blender.org
Wed Apr 18 18:37:37 CEST 2018


Commit: d7a063f166741eea06921bcde8cc2cf79620faeb
Author: Julian Eisel
Date:   Wed Apr 18 18:31:29 2018 +0200
Branches: topbar
https://developer.blender.org/rBd7a063f166741eea06921bcde8cc2cf79620faeb

Merge branch 'blender2.8' into topbar

===================================================================



===================================================================

diff --cc source/blender/blenloader/intern/readfile.c
index 309081abf86,fdd65add6d1..400c47eae86
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@@ -7080,18 -6883,11 +6883,10 @@@ static void lib_link_area(FileData *fd
  			case SPACE_CLIP:
  			{
  				SpaceClip *sclip = (SpaceClip *)sl;
--
 -				sclip->clip = newlibadr_real_us(fd, sc->id.lib, sclip->clip);
 -				sclip->mask_info.mask = newlibadr_real_us(fd, sc->id.lib, sclip->mask_info.mask);
 +				sclip->clip = newlibadr_real_us(fd, parent_id->lib, sclip->clip);
 +				sclip->mask_info.mask = newlibadr_real_us(fd, parent_id->lib, sclip->mask_info.mask);
  				break;
  			}
- 			case SPACE_LOGIC:
- 			{
- 				SpaceLogic *slogic = (SpaceLogic *)sl;
- 
- 				slogic->gpd = newlibadr_us(fd, parent_id->lib, slogic->gpd);
- 				break;
- 			}
  			default:
  				break;
  		}
diff --cc source/blender/blenloader/intern/versioning_280.c
index f83d8957a0e,b2bb2fd792b..ca8642f6170
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@@ -950,46 -887,54 +899,95 @@@ void blo_do_versions_280(FileData *fd, 
  				probe->intensity = 1.0f;
  			}
  		}
+ 
+ 		for (Object *ob = main->object.first; ob; ob = ob->id.next) {
+ 			bConstraint *con, *con_next;
+ 			con = ob->constraints.first;
+ 			while (con) {
+ 				con_next = con->next;
+ 				if (con->type == 17) { /* CONSTRAINT_TYPE_RIGIDBODYJOINT */
+ 					BLI_remlink(&ob->constraints, con);
+ 					BKE_constraint_free_data(con);
+ 					MEM_freeN(con);
+ 				}
+ 				con = con_next;
+ 			}
+ 		}
+ 
+ 		if (!DNA_struct_elem_find(fd->filesdna, "Scene", "int", "orientation_index_custom")) {
+ 			for (Scene *scene = main->scene.first; scene; scene = scene->id.next) {
+ 				scene->orientation_index_custom = -1;
+ 			}
+ 		}
+ 
+ 		for (bScreen *sc = main->screen.first; sc; sc = sc->id.next) {
+ 			for (ScrArea *sa = sc->areabase.first; sa; sa = sa->next) {
+ 				for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
+ 					if (sl->spacetype == SPACE_VIEW3D) {
+ 						View3D *v3d = (View3D *)sl;
+ 						v3d->drawtype_solid = OB_LIGHTING_STUDIO;
+ 						v3d->drawtype_wireframe = OB_LIGHTING_STUDIO;
+ 
+ 						/* Assume (demo) files written with 2.8 want to show
+ 						 * Eevee renders in the viewport. */
+ 						if (MAIN_VERSION_ATLEAST(main, 280, 0)) {
+ 							v3d->drawtype = OB_MATERIAL;
+ 						}
+ 					}
+ 				}
+ 			}
+ 		}
+ 	}
+ 
+ 	if (!MAIN_VERSION_ATLEAST(main, 280, 7)) {
+ 		/* Render engine storage moved elsewhere and back during 2.8
+ 		 * development, we assume any files saved in 2.8 had Eevee set
+ 		 * as scene render engine. */
+ 		if (MAIN_VERSION_ATLEAST(main, 280, 0)) {
+ 			for (Scene *scene = main->scene.first; scene; scene = scene->id.next) {
+ 				BLI_strncpy(scene->r.engine, RE_engine_id_BLENDER_EEVEE, sizeof(scene->r.engine));
+ 			}
+ 		}
  	}
 +
 +	if (!DNA_struct_find(fd->filesdna, "SpaceTopBar")) {
 +		for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) {
 +			for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
 +				for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
 +					if (ELEM(sl->spacetype, SPACE_VIEW3D, SPACE_CLIP)) {
 +						ListBase *regionbase = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase;
 +
 +						for (ARegion *region = regionbase->first, *region_next; region; region = region_next) {
 +							region_next = region->next;
 +
 +							if (region->regiontype == RGN_TYPE_TOOL_PROPS) {
 +								BKE_area_region_free(NULL, region);
 +								BLI_freelinkN(regionbase, region);
 +							}
 +						}
 +					}
 +				}
 +			}
 +		}
 +
 +		for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) {
 +			for (ScrArea *area = screen->areabase.first, *area_next; area; area = area_next) {
 +				area_next = area->next;
 +
 +				if (area->spacetype == SPACE_INFO) {
 +					BKE_screen_area_free(area);
 +
 +					BLI_remlink(&screen->areabase, area);
 +
 +					BKE_screen_remove_double_scredges(screen);
 +					BKE_screen_remove_unused_scredges(screen);
 +					BKE_screen_remove_unused_scrverts(screen);
 +
 +					MEM_freeN(area);
 +				}
 +				/* AREA_TEMP_INFO is deprecated from now on, it should only be set for info areas
 +				 * which are deleted above, so don't need to unset it. Its slot/bit can be reused */
 +			}
 +		}
 +	}
  }
diff --cc source/blender/editors/include/UI_interface.h
index ed6a1de83c5,d85c77d55fb..777129daedd
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@@ -701,41 -699,9 +699,31 @@@ uiBut *uiDefSearchButO_ptr(uiBlock *blo
                             void *arg, int retval, int icon, int maxlen, int x, int y,
                             short width, short height, float a1, float a2, const char *tip);
  
 +
 +/* For uiDefAutoButsRNA */
 +typedef enum {
 +	/* Keep current layout for aligning label with property button. */
 +	UI_BUT_LABEL_ALIGN_NONE,
 +	/* Align label and property button vertically. */
 +	UI_BUT_LABEL_ALIGN_COLUMN,
 +	/* Split layout into a column for the label and one for property button. */
 +	UI_BUT_LABEL_ALIGN_SPLIT_COLUMN,
 +} eButLabelAlign;
 +
 +/* Return info for uiDefAutoButsRNA */
 +typedef enum {
 +	/* Returns when no buttons were added */
 +	UI_PROP_BUTS_NONE_ADDED       = (1 << 0),
 +	/* Returned when any property failed the custom check callback (check_prop) */
 +	UI_PROP_BUTS_ANY_FAILED_CHECK = (1 << 1),
 +} eAutoPropButsReturn;
 +
  uiBut *uiDefAutoButR(uiBlock *block, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, const char *name, int icon, int x1, int y1, int x2, int y2);
 -int uiDefAutoButsRNA(uiLayout *layout, struct PointerRNA *ptr, bool (*check_prop)(struct PointerRNA *, struct PropertyRNA *), const char label_align);
 +eAutoPropButsReturn uiDefAutoButsRNA(
 +        uiLayout *layout, struct PointerRNA *ptr,
 +        bool (*check_prop)(struct PointerRNA *, struct PropertyRNA *),
 +        eButLabelAlign label_align, const bool compact);
  
- /* Links
-  *
-  * Game engine logic brick links. Non-functional currently in 2.5,
-  * code to handle and draw these is disabled internally. */
- 
- void UI_but_link_set(struct uiBut *but,  void **poin,  void ***ppoin,  short *tot,  int from, int to);
- 
- void UI_block_links_compose(uiBlock *block);
- uiBut *UI_block_links_find_inlink(uiBlock *block, void *poin);
- 
  /* use inside searchfunc to add items */
  bool    UI_search_item_add(uiSearchItems *items, const char *name, void *poin, int iconid);
  /* bfunc gets search item *poin as arg2, or if NULL the old string */
diff --cc source/blender/makesdna/DNA_view3d_types.h
index 3900e73da11,2b82638a6b8..ffa120d9221
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@@ -197,10 -197,10 +197,10 @@@ typedef struct View3D 
  	char gridflag;
  
  	/* transform manipulator info */
- 	char twtype, twmode, twflag;
+ 	char twtype, _pad5, twflag;
  	
  	short flag3;
 -	
 +
  	/* afterdraw, for xray & transparent */
  	struct ListBase afterdraw_transp;
  	struct ListBase afterdraw_xray;
diff --cc source/blender/makesrna/intern/rna_userdef.c
index fcd41cc3a70,fe69b91e833..78a9807d7f1
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@@ -3258,9 -3202,7 +3228,8 @@@ static void rna_def_userdef_dothemes(Bl
  	rna_def_userdef_theme_space_info(brna);
  	rna_def_userdef_theme_space_userpref(brna);
  	rna_def_userdef_theme_space_console(brna);
- 	rna_def_userdef_theme_space_logic(brna);
  	rna_def_userdef_theme_space_clip(brna);
 +	rna_def_userdef_theme_space_topbar(brna);
  	rna_def_userdef_theme_colorset(brna);
  	rna_def_userdef_themes(brna);
  }



More information about the Bf-blender-cvs mailing list