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

Bastien Montagne noreply at git.blender.org
Sat Aug 6 12:57:42 CEST 2016


Commit: 9843921288307be33fc39450586ff9ad226829a1
Author: Bastien Montagne
Date:   Sat Aug 6 12:25:24 2016 +0200
Branches: blender2.8
https://developer.blender.org/rB9843921288307be33fc39450586ff9ad226829a1

Merge branch 'master' into blender2.8

Conflicts:
	release/scripts/startup/bl_ui/properties_particle.py
	release/scripts/startup/bl_ui/properties_physics_cloth.py
	release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
	release/scripts/startup/bl_ui/properties_physics_softbody.py
	source/blender/blenkernel/BKE_library.h
	source/blender/blenkernel/BKE_particle.h
	source/blender/blenkernel/intern/cloth.c
	source/blender/blenkernel/intern/library.c
	source/blender/blenkernel/intern/library_query.c
	source/blender/blenkernel/intern/particle_system.c
	source/blender/blenkernel/intern/scene.c
	source/blender/blenkernel/intern/softbody.c
	source/blender/blenloader/intern/readfile.c
	source/blender/blenloader/intern/versioning_270.c
	source/blender/editors/space_file/filesel.c
	source/blender/editors/space_outliner/outliner_intern.h
	source/blender/makesdna/DNA_ID.h
	source/blender/makesdna/DNA_object_force.h
	source/blender/makesdna/DNA_particle_types.h
	source/blender/makesrna/intern/rna_particle.c
	source/blender/makesrna/intern/rna_sculpt_paint.c
	source/blender/makesrna/intern/rna_smoke.c
	source/blender/makesrna/intern/rna_space.c

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



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

diff --cc intern/cycles/blender/addon/properties.py
index 7dc0f46,81204eb..ab79837
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@@ -1093,7 -1129,9 +1086,8 @@@ def register()
      bpy.utils.register_class(CyclesWorldSettings)
      bpy.utils.register_class(CyclesVisibilitySettings)
      bpy.utils.register_class(CyclesMeshSettings)
+     bpy.utils.register_class(CyclesObjectSettings)
      bpy.utils.register_class(CyclesCurveRenderSettings)
 -    bpy.utils.register_class(CyclesCurveSettings)
  
  
  def unregister():
@@@ -1103,5 -1141,7 +1097,6 @@@
      bpy.utils.unregister_class(CyclesLampSettings)
      bpy.utils.unregister_class(CyclesWorldSettings)
      bpy.utils.unregister_class(CyclesMeshSettings)
+     bpy.utils.unregister_class(CyclesObjectSettings)
      bpy.utils.unregister_class(CyclesVisibilitySettings)
      bpy.utils.unregister_class(CyclesCurveRenderSettings)
 -    bpy.utils.unregister_class(CyclesCurveSettings)
diff --cc release/scripts/startup/bl_ui/properties_physics_cloth.py
index 28a8858,3ebf269..0362cc4
--- a/release/scripts/startup/bl_ui/properties_physics_cloth.py
+++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py
@@@ -25,6 -26,10 +25,11 @@@ from bl_ui.properties_physics_common im
          )
  
  
+ def cloth_panel_enabled(md):
 -    return md.point_cache.is_baked is False
++    return True
++    #return md.point_cache.is_baked is False
+ 
+ 
  class CLOTH_MT_presets(Menu):
      bl_label = "Cloth Presets"
      preset_subdir = "cloth"
@@@ -54,12 -60,12 +60,14 @@@ class PHYSICS_PT_cloth(PhysicButtonsPan
          ob = context.object
          cloth = md.settings
  
-         split = layout.split()
+         layout.active = cloth_panel_enabled(md)
+ 
+         split = layout.split(percentage=0.25)
  
 +        col = split.column()
 +
-         col.label(text="Presets:")
-         sub = col.row(align=True)
+         split.label(text="Presets:")
+         sub = split.row(align=True)
          sub.menu("CLOTH_MT_presets", text=bpy.types.CLOTH_MT_presets.bl_label)
          sub.operator("cloth.preset_add", text="", icon='ZOOMIN')
          sub.operator("cloth.preset_add", text="", icon='ZOOMOUT').remove_active = True
@@@ -99,10 -124,22 +126,12 @@@
          key = ob.data.shape_keys
  
          if key:
-             col.label(text="Rest Shape Key:")
-             col.prop_search(cloth, "rest_shape_key", key, "key_blocks", text="")
+             sub = col.column()
+             sub.active = not cloth.use_dynamic_mesh
+             sub.label(text="Rest Shape Key:")
+             sub.prop_search(cloth, "rest_shape_key", key, "key_blocks", text="")
  
  
 -class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel):
 -    bl_label = "Cloth Cache"
 -    bl_options = {'DEFAULT_CLOSED'}
 -    COMPAT_ENGINES = {'BLENDER_RENDER'}
 -
 -    def draw(self, context):
 -        md = context.cloth
 -        point_cache_ui(self, context, md.point_cache, cloth_panel_enabled(md), 'CLOTH')
 -
 -
  class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel):
      bl_label = "Cloth Collision"
      bl_options = {'DEFAULT_CLOSED'}
diff --cc release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
index bba13a9,6c3a324..b364046
--- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
+++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
@@@ -385,8 -393,32 +390,9 @@@ class PHYSICS_PT_dp_effects(PhysicButto
              row.prop(surface, "shrink_speed")
  
  
 -class PHYSICS_PT_dp_cache(PhysicButtonsPanel, Panel):
 -    bl_label = "Dynamic Paint Cache"
 -    bl_options = {'DEFAULT_CLOSED'}
 -    COMPAT_ENGINES = {'BLENDER_RENDER'}
 -
 -    @classmethod
 -    def poll(cls, context):
 -        md = context.dynamic_paint
 -        rd = context.scene.render
 -        return (md and
 -                md.ui_type == 'CANVAS' and
 -                md.canvas_settings and
 -                md.canvas_settings.canvas_surfaces.active and
 -                md.canvas_settings.canvas_surfaces.active.is_cache_user and
 -                (rd.engine in cls.COMPAT_ENGINES))
 -
 -    def draw(self, context):
 -        surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
 -        cache = surface.point_cache
 -
 -        point_cache_ui(self, context, cache, (cache.is_baked is False), 'DYNAMIC_PAINT')
 -
 -
  class PHYSICS_PT_dp_brush_source(PhysicButtonsPanel, Panel):
      bl_label = "Dynamic Paint Source"
+     COMPAT_ENGINES = {'BLENDER_RENDER'}
  
      @classmethod
      def poll(cls, context):
diff --cc release/scripts/startup/bl_ui/properties_physics_softbody.py
index 32f220c,a458af7..e873bb4
--- a/release/scripts/startup/bl_ui/properties_physics_softbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_softbody.py
@@@ -25,6 -26,10 +25,11 @@@ from bl_ui.properties_physics_common im
          )
  
  
+ def softbody_panel_enabled(md):
 -    return (md.point_cache.is_baked is False)
++    return True
++    #return (md.point_cache.is_baked is False)
+ 
+ 
  class PhysicButtonsPanel:
      bl_space_type = 'PROPERTIES'
      bl_region_type = 'WINDOW'
@@@ -61,7 -68,19 +68,9 @@@ class PHYSICS_PT_softbody(PhysicButtons
          col.label(text="Simulation:")
          col.prop(softbody, "speed")
  
+         layout.prop(softbody, "collision_group")
+ 
  
 -class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel):
 -    bl_label = "Soft Body Cache"
 -    bl_options = {'DEFAULT_CLOSED'}
 -    COMPAT_ENGINES = {'BLENDER_RENDER'}
 -
 -    def draw(self, context):
 -        md = context.soft_body
 -        point_cache_ui(self, context, md.point_cache, softbody_panel_enabled(md), 'SOFTBODY')
 -
 -
  class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel):
      bl_label = "Soft Body Goal"
      bl_options = {'DEFAULT_CLOSED'}
diff --cc source/blender/CMakeLists.txt
index ca103e4,6f2b78e..d49ceb1
--- a/source/blender/CMakeLists.txt
+++ b/source/blender/CMakeLists.txt
@@@ -29,7 -29,9 +29,8 @@@ set(SRC_DNA_IN
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_actuator_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_anim_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_armature_types.h
 -	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_boid_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_brush_types.h
+ 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_cachefile_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_camera_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_cloth_types.h
  	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_color_types.h
diff --cc source/blender/blenkernel/BKE_library.h
index 09b4881,e49019f..e32bc2f
--- a/source/blender/blenkernel/BKE_library.h
+++ b/source/blender/blenkernel/BKE_library.h
@@@ -94,7 -94,7 +94,7 @@@ void id_clear_lib_data_ex(struct Main *
  
  struct ListBase *which_libbase(struct Main *mainlib, short type);
  
- #define MAX_LIBARRAY    33
 -#define MAX_LIBARRAY    35
++#define MAX_LIBARRAY    34
  int set_listbasepointers(struct Main *main, struct ListBase *lb[MAX_LIBARRAY]);
  
  /* Main API */
diff --cc source/blender/blenkernel/intern/cloth.c
index fa09605,681b931..4ab6c82
--- a/source/blender/blenkernel/intern/cloth.c
+++ b/source/blender/blenkernel/intern/cloth.c
@@@ -343,8 -368,11 +345,11 @@@ static int do_step_cloth(Object *ob, Cl
  		mul_m4_v3(ob->obmat, verts->xconst);
  	}
  
 -	effectors = pdInitEffectors(clmd->scene, ob, NULL, clmd->sim_parms->effector_weights, true);
 +	effectors = pdInitEffectors(clmd->scene, ob, clmd->sim_parms->effector_weights, true);
  
+ 	if (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_DYNAMIC_BASEMESH )
+ 		cloth_update_verts ( ob, clmd, result );
+ 
  	/* Support for dynamic vertex groups, changing from frame to frame */
  	cloth_apply_vgroup ( clmd, result );
  
@@@ -372,11 -400,19 +377,11 @@@
   ************************************************/
  void clothModifier_do(ClothModifierData *clmd, Scene *scene, Object *ob, DerivedMesh *dm, float (*vertexCos)[3])
  {
 -	PointCache *cache;
 -	PTCacheID pid;
 -	float timescale;
 -	int framenr, startframe, endframe;
 -	int cache_result;
 +	int framenr = scene->r.cfra, startframe = scene->r.sfra, endframe = scene->r.efra;
  
  	clmd->scene= scene;	/* nice to pass on later :) */
 -	framenr= (int)scene->r.cfra;
 -	cache= clmd->point_cache;
  
- 	clmd->sim_parms->timescale= 1.0f;
 -	BKE_ptcache_id_from_cloth(&pid, ob, clmd);
 -	BKE_ptcache_id_time(&pid, scene, framenr, &startframe, &endframe, &timescale);
 -	clmd->sim_parms->timescale= timescale * clmd->sim_parms->time_scale;
++	clmd->sim_parms->timescale = 1.0f;
  
  	if (clmd->sim_parms->reset || (clmd->clothObject && dm->getNumVerts(dm) != clmd->clothObject->mvert_num)) {
  		clmd->sim_parms->reset = 0;
diff --cc source/blender/blenkernel/intern/library.c
index 558c3bb,c981edf..933622e
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@@ -103,8 -106,11 +106,10 @@@
  #include "BKE_main.h"
  #include "BKE_mball.h"
  #include "BKE_mask.h"
+ #include "BKE_movieclip.h"
  #include "BKE_node.h"
  #include "BKE_object.h"
+ #include "BKE_paint.h"
 -#include "BKE_particle.h"
  #include "BKE_packedFile.h"
  #include "BKE_sound.h"
  #include "BKE_speaker.h"
@@@ -408,8 -407,9 +406,6 @@@ bool id_make_local(Main *bmain, ID *id
  		case ID_BR:
  			if (!test) BKE_brush_make_local(bmain, (Brush *)id, lib_local);
  			return true;
- 		case ID_WM:
- 			return false; /* can't be linked */
 -		case ID_PA:
 -			if (!test) BKE_particlesettings_make_local(bmain, (ParticleSettings *)id, lib_local);
 -			return true;
  		case ID_GD:
  			if (!test) BKE_gpencil_make_local(bmain, (bGPdata *)id, lib_local);
  			return true;
@@@ -507,10 -514,14 +510,11 @@@ bool id_copy(Main *bmain, ID *id, ID **
  		case ID_BR:
  			if (!test) *newid = (ID *)BKE_brush_copy(bmain, (Brush *)id);
  			return true;
- 		case ID_WM:
- 			return false;  /* can't be copied from here */
 -		case ID_PA:
 -			if (!test) *newid = (ID *)BKE_particlesettings_copy(bmain, (ParticleSettings *)id);
 -			return true;
  		case ID_GD:
- 			if (!test) *newid = (ID *)gpencil_data_duplicate(bmain, (bGPdata *)id, false);
+ 			if (!test) *newid = (ID *)BKE_gpencil_data_duplicate(bmain, (bGPdata *)id, false);
+ 			

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list