[Bf-blender-cvs] [a760e73dcf6] blender2.8: Merge branch 'master' into blender2.8

Campbell Barton noreply at git.blender.org
Fri Nov 30 05:49:16 CET 2018


Commit: a760e73dcf6f0a0da901359d1456ad5ca180ebeb
Author: Campbell Barton
Date:   Fri Nov 30 15:46:26 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBa760e73dcf6f0a0da901359d1456ad5ca180ebeb

Merge branch 'master' into blender2.8

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



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

diff --cc source/blender/blenkernel/BKE_node.h
index 07a50a782c5,3d78b95001d..5f0635037c2
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@@ -690,16 -687,9 +690,16 @@@ bool BKE_node_tree_iter_step(struct Nod
  #define FOREACH_NODETREE_END \
  		} \
  	} \
- }
+ } ((void)0)
  /** \} */
  
 +
 +/* -------------------------------------------------------------------- */
 +/** \name Node Tree
 + */
 +
 +void BKE_nodetree_remove_layer_n(struct bNodeTree *ntree, struct Scene *scene, const int layer_index);
 +
  /* -------------------------------------------------------------------- */
  /** \name Shader Nodes
   * \{ */
diff --cc source/blender/blenkernel/BKE_sequencer.h
index 00fd4ded8c6,705143480d2..ebe732d2336
--- a/source/blender/blenkernel/BKE_sequencer.h
+++ b/source/blender/blenkernel/BKE_sequencer.h
@@@ -90,11 -89,11 +90,11 @@@ void BKE_sequence_iterator_end(SeqItera
  #define SEQ_END                                                               \
  		}                                                                     \
  		BKE_sequence_iterator_end(&iter_macro);                               \
- 	}
+ 	} ((void)0)
  
  typedef struct SeqRenderData {
 -	struct EvaluationContext *eval_ctx;
  	struct Main *bmain;
 +	struct Depsgraph *depsgraph;
  	struct Scene *scene;
  	int rectx;
  	int recty;
diff --cc source/blender/blenkernel/intern/library_query.c
index 902cabad857,f5367f6f8b3..f0f23eaa87d
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@@ -426,41 -455,13 +426,40 @@@ void BKE_library_foreach_ID_link(Main *
  						for (SequenceModifierData *smd = seq->modifiers.first; smd; smd = smd->next) {
  							CALLBACK_INVOKE(smd->mask_id, IDWALK_CB_USER);
  						}
- 					}
- 					SEQ_END
+ 					} SEQ_END;
  				}
  
 -				CALLBACK_INVOKE(scene->gpd, IDWALK_CB_USER);
  
 -				for (base = scene->base.first; base; base = base->next) {
 -					CALLBACK_INVOKE(base->object, IDWALK_CB_USER);
 +				for (CollectionObject *cob = scene->master_collection->gobject.first; cob; cob = cob->next) {
 +					CALLBACK_INVOKE(cob->ob, IDWALK_CB_USER);
 +				}
 +				for (CollectionChild *child = scene->master_collection->children.first; child; child = child->next) {
 +					CALLBACK_INVOKE(child->collection, IDWALK_CB_USER);
 +				}
 +
 +				ViewLayer *view_layer;
 +				for (view_layer = scene->view_layers.first; view_layer; view_layer = view_layer->next) {
 +					for (Base *base = view_layer->object_bases.first; base; base = base->next) {
 +						CALLBACK_INVOKE(base->object, IDWALK_CB_NOP);
 +					}
 +
 +					library_foreach_layer_collection(&data, &view_layer->layer_collections);
 +
 +					for (FreestyleModuleConfig  *fmc = view_layer->freestyle_config.modules.first; fmc; fmc = fmc->next) {
 +						if (fmc->script) {
 +							CALLBACK_INVOKE(fmc->script, IDWALK_CB_NOP);
 +						}
 +					}
 +
 +					for (FreestyleLineSet *fls = view_layer->freestyle_config.linesets.first; fls; fls = fls->next) {
 +						if (fls->group) {
 +							CALLBACK_INVOKE(fls->group, IDWALK_CB_USER);
 +						}
 +
 +						if (fls->linestyle) {
 +							CALLBACK_INVOKE(fls->linestyle, IDWALK_CB_USER);
 +						}
 +					}
  				}
  
  				for (TimeMarker *marker = scene->markers.first; marker; marker = marker->next) {
diff --cc source/blender/blenloader/intern/versioning_250.c
index 0d7e05edb2d,a6d8b6de606..54e1512c953
--- a/source/blender/blenloader/intern/versioning_250.c
+++ b/source/blender/blenloader/intern/versioning_250.c
@@@ -1386,11 -1754,10 +1385,10 @@@ void blo_do_versions_250(FileData *fd, 
  			if ((sce->r.ffcodecdata.flags & FFMPEG_MULTIPLEX_AUDIO) == 0)
  				sce->r.ffcodecdata.audio_codec = 0x0; // CODEC_ID_NONE
  
 -			SEQ_BEGIN (sce->ed, seq)
 +			SEQ_BEGIN(sce->ed, seq)
  			{
  				seq->volume = 1.0f;
- 			}
- 			SEQ_END
+ 			} SEQ_END;
  		}
  
  		/* particle brush strength factor was changed from int to float */
diff --cc source/blender/blenloader/intern/versioning_260.c
index 9cb96f6d8b3,af291981e7f..d1589aa0d5e
--- a/source/blender/blenloader/intern/versioning_260.c
+++ b/source/blender/blenloader/intern/versioning_260.c
@@@ -1244,8 -1316,21 +1244,8 @@@ void blo_do_versions_260(FileData *fd, 
  		}
  	}
  
 -
 -	if (bmain->versionfile < 263 || (bmain->versionfile == 263 && bmain->subversionfile < 8)) {
 -		/* set new deactivation values for game settings */
 -		Scene *sce;
 -
 -		for (sce = bmain->scene.first; sce; sce = sce->id.next) {
 -			/* Game Settings */
 -			sce->gm.lineardeactthreshold = 0.8f;
 -			sce->gm.angulardeactthreshold = 1.0f;
 -			sce->gm.deactivationtime = 2.0f;
 -		}
 -	}
 -
  	if (bmain->versionfile < 263 || (bmain->versionfile == 263 && bmain->subversionfile < 9)) {
- 		FOREACH_NODETREE(bmain, ntree, id) {
+ 		FOREACH_NODETREE_BEGIN(bmain, ntree, id) {
  			if (ntree->type == NTREE_SHADER) {
  				bNode *node;
  				for (node = ntree->nodes.first; node; node = node->next) {
@@@ -1334,8 -1420,16 +1334,8 @@@
  		}
  	}
  
 -	if (bmain->versionfile < 263 || (bmain->versionfile == 263 && bmain->subversionfile < 12)) {
 -		Material *ma;
 -
 -		for (ma = bmain->mat.first; ma; ma = ma->id.next)
 -			if (ma->strand_widthfade == 2.0f)
 -				ma->strand_widthfade = 0.0f;
 -	}
 -
  	if (bmain->versionfile < 263 || (bmain->versionfile == 263 && bmain->subversionfile < 13)) {
- 		FOREACH_NODETREE(bmain, ntree, id) {
+ 		FOREACH_NODETREE_BEGIN(bmain, ntree, id) {
  			if (ntree->type == NTREE_COMPOSIT) {
  				bNode *node;
  				for (node = ntree->nodes.first; node; node = node->next) {
@@@ -1628,9 -1734,27 +1627,9 @@@
  					}
  				}
  			}
- 		} FOREACH_NODETREE_END
+ 		} FOREACH_NODETREE_END;
  	}
  
 -	if (bmain->versionfile < 264 || (bmain->versionfile == 264 && bmain->subversionfile < 6)) {
 -		bScreen *sc;
 -
 -		for (sc = bmain->screen.first; sc; sc = sc->id.next) {
 -			ScrArea *sa;
 -			for (sa = sc->areabase.first; sa; sa = sa->next) {
 -				SpaceLink *sl;
 -				if (sa->spacetype == SPACE_LOGIC)
 -					do_version_logic_264(&sa->regionbase);
 -
 -				for (sl = sa->spacedata.first; sl; sl = sl->next) {
 -					if (sl->spacetype == SPACE_LOGIC)
 -						do_version_logic_264(&sl->regionbase);
 -				}
 -			}
 -		}
 -	}
 -
  	if (bmain->versionfile < 264 || (bmain->versionfile == 264 && bmain->subversionfile < 7)) {
  		/* convert tiles size from resolution and number of tiles */
  		{
diff --cc source/blender/blenloader/intern/versioning_280.c
index 16f436cb378,00000000000..434153fc7b9
mode 100644,000000..100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@@ -1,2484 -1,0 +1,2484 @@@
 +/*
 + * ***** BEGIN GPL LICENSE BLOCK *****
 + *
 + * This program is free software; you can redistribute it and/or
 + * modify it under the terms of the GNU General Public License
 + * as published by the Free Software Foundation; either version 2
 + * of the License, or (at your option) any later version.
 + *
 + * This program is distributed in the hope that it will be useful,
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + * GNU General Public License for more details.
 + *
 + * You should have received a copy of the GNU General Public License
 + * along with this program; if not, write to the Free Software Foundation,
 + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 + *
 + * Contributor(s): Dalai Felinto
 + *
 + * ***** END GPL LICENSE BLOCK *****
 + *
 + */
 +
 +/** \file blender/blenloader/intern/versioning_280.c
 + *  \ingroup blenloader
 + */
 +
 +/* allow readfile to use deprecated functionality */
 +#define DNA_DEPRECATED_ALLOW
 +
 +#include <string.h>
 +#include <float.h>
 +
 +#include "BLI_listbase.h"
 +#include "BLI_math.h"
 +#include "BLI_mempool.h"
 +#include "BLI_string.h"
 +#include "BLI_string_utf8.h"
 +#include "BLI_utildefines.h"
 +
 +#include "DNA_object_types.h"
 +#include "DNA_camera_types.h"
 +#include "DNA_cloth_types.h"
 +#include "DNA_collection_types.h"
 +#include "DNA_constraint_types.h"
 +#include "DNA_gpu_types.h"
 +#include "DNA_lamp_types.h"
 +#include "DNA_layer_types.h"
 +#include "DNA_lightprobe_types.h"
 +#include "DNA_material_types.h"
 +#include "DNA_mesh_types.h"
 +#include "DNA_modifier_types.h"
 +#include "DNA_particle_types.h"
 +#include "DNA_rigidbody_types.h"
 +#include "DNA_scene_types.h"
 +#include "DNA_screen_types.h"
 +#include "DNA_view3d_types.h"
 +#include "DNA_genfile.h"
 +#include "DNA_gpencil_types.h"
 +#include "DNA_workspace_types.h"
 +#include "DNA_key_types.h"
 +#include "DNA_curve_types.h"
 +#include "DNA_armature_types.h"
 +
 +#include "BKE_action.h"
 +#include "BKE_cloth.h"
 +#include "BKE_collection.h"
 +#include "BKE_constraint.h"
 +#include "BKE_colortools.h"
 +#include "BKE_customdata.h"
 +#include "BKE_freestyle.h"
 +#include "BKE_gpencil.h"
 +#include "BKE_idprop.h"
 +#include "BKE_image.h"
 +#include "BKE_key.h"
 +#include "BKE_library.h"
 +#include "BKE_layer.h"
 +#include "BKE_main.h"
 +#include "BKE_material.h"
 +#include "BKE_mesh.h"
 +#include "BKE_node.h"
 +#include "BKE_object.h"
 +#include "BKE_paint.h"
 +#include "BKE_pointcache.h"
 +#include "BKE_report.h"
 +#include "BKE_scene.h"
 +#include "BKE_screen.h"
 +#include "BKE_sequencer.h"
 +#include "BKE_studiolight.h"
 +#include "BKE_unit.h"
 +#include "BKE_workspace.h"
 +
 +/* Only for IMB_BlendMode */
 +#include "IMB_imbuf.h"
 +
 +#include "DEG_depsgraph.h"
 +
 +#include "BLT_translation.h"
 +
 +#include "BLO_readfile.h"
 +#include "readfile.h"
 +
 +#include "MEM_guardedalloc.h"
 +
 +static bScreen *screen_parent_find(const bScreen *screen)
 +{
 +	/* can avoid lookup if screen state isn't maximized/full (parent and child store the same state) */
 +	if (ELEM(screen->state, SCREENMAXIMIZED, SCREENFULL)) {
 +		for (const ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
 +			if (sa->full && sa->full != screen) {
 +				BLI_assert(sa->full->state == screen->state);
 +				return sa->full;
 +			}
 +		}
 +	}
 +
 +	return NULL;
 +}
 +
 +static void do_version_workspaces_create_from_screens(Main *bmain)
 +{
 +	for (bScreen *screen = bmain->screen.first; screen; screen = scr

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list