Commit: 2ca8230f67db3d6c4693d0a2e0997dfd5de43091
Author: Campbell Barton
Date:   Sat Jun 9 14:42:01 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2ca8230f67db3d6c4693d0a2e0997dfd5de43091

Merge branch 'master' into blender2.8

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



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

diff --cc source/blender/makesrna/intern/rna_action.c
index b06038a50e4,6985cb54359..5b225b18a78
--- a/source/blender/makesrna/intern/rna_action.c
+++ b/source/blender/makesrna/intern/rna_action.c
@@@ -324,21 -324,21 +324,21 @@@ static void rna_def_dopesheet(BlenderRN
        RNA_def_property_ui_text(prop, "Show Errors", "Only include F-Curves 
and drivers that are disabled or have errors");
        RNA_def_property_ui_icon(prop, ICON_HELP, 0); /* XXX: this doesn't 
quite fit */
        RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, 
NULL);
-       
+ 
 -      /* Object Group Filtering Settings */
 -      prop = RNA_def_property(srna, "show_only_group_objects", PROP_BOOLEAN, 
PROP_NONE);
 +      /* Object Collection Filtering Settings */
 +      prop = RNA_def_property(srna, "show_only_collection_objects", 
PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "filterflag", 
ADS_FILTER_ONLYOBGROUP);
 -      RNA_def_property_ui_text(prop, "Only Objects in Group",
 -                               "Only include channels from objects in the 
specified group");
 +      RNA_def_property_ui_text(prop, "Only Objects in Collection",
 +                               "Only include channels from objects in the 
specified collection");
        RNA_def_property_ui_icon(prop, ICON_GROUP, 0);
        RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, 
NULL);
-       
+ 
 -      prop = RNA_def_property(srna, "filter_group", PROP_POINTER, PROP_NONE);
 +      prop = RNA_def_property(srna, "filter_collection", PROP_POINTER, 
PROP_NONE);
        RNA_def_property_pointer_sdna(prop, NULL, "filter_grp");
        RNA_def_property_flag(prop, PROP_EDITABLE);
 -      RNA_def_property_ui_text(prop, "Filtering Group", "Group that included 
object should be a member of");
 +      RNA_def_property_ui_text(prop, "Filtering Collection", "Collection that 
included object should be a member of");
        RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, 
NULL);
-       
+ 
        /* FCurve Display Name Search Settings */
        prop = RNA_def_property(srna, "show_only_matching_fcurves", 
PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "filterflag", 
ADS_FILTER_BY_FCU_NAME);
diff --cc source/blender/makesrna/intern/rna_animation.c
index d2c719ac5d1,23071288c0a..d89e3e68492
--- a/source/blender/makesrna/intern/rna_animation.c
+++ b/source/blender/makesrna/intern/rna_animation.c
@@@ -85,11 -84,11 +85,11 @@@ const EnumPropertyItem rna_enum_keying_
  static void rna_AnimData_update(Main *UNUSED(bmain), Scene *UNUSED(scene), 
PointerRNA *ptr)
  {
        ID *id = ptr->id.data;
-       
-       /* tag for refresh so that scheduled updates (e.g. action changed) will 
-        * get computed and reflected in the scene [#34869] 
+ 
+       /* tag for refresh so that scheduled updates (e.g. action changed) will
+        * get computed and reflected in the scene [#34869]
         */
 -      DAG_id_tag_update(id, OB_RECALC_OB | OB_RECALC_DATA);
 +      DEG_id_tag_update(id, OB_RECALC_OB | OB_RECALC_DATA);
  }
  
  static int rna_AnimData_action_editable(PointerRNA *ptr, const char 
**UNUSED(r_info))
@@@ -1086,11 -1054,10 +1086,11 @@@ static void rna_def_animdata(BlenderRN
        prop = RNA_def_property(srna, "drivers", PROP_COLLECTION, PROP_NONE);
        RNA_def_property_collection_sdna(prop, NULL, "drivers", NULL);
        RNA_def_property_struct_type(prop, "FCurve");
 +      RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
        RNA_def_property_ui_text(prop, "Drivers", "The Drivers/Expressions for 
this data-block");
-       
+ 
        rna_api_animdata_drivers(brna, prop);
-       
+ 
        /* General Settings */
        prop = RNA_def_property(srna, "use_nla", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", 
ADT_NLA_EVAL_OFF);
diff --cc source/blender/makesrna/intern/rna_armature.c
index 69a5cc2d6b1,b3b69e9c58a..44a21e797f1
--- a/source/blender/makesrna/intern/rna_armature.c
+++ b/source/blender/makesrna/intern/rna_armature.c
@@@ -148,8 -146,7 +148,8 @@@ static void rna_Armature_update_layers(
  static void rna_Armature_redraw_data(Main *UNUSED(bmain), Scene 
*UNUSED(scene), PointerRNA *ptr)
  {
        ID *id = ptr->id.data;
-       
+ 
 +      DEG_id_tag_update(id, DEG_TAG_COPY_ON_WRITE);
        WM_main_add_notifier(NC_GEOM | ND_DATA, id);
  }
  
@@@ -168,34 -165,28 +168,34 @@@ static void rna_Bone_update_renamed(Mai
  static void rna_Bone_select_update(Main *UNUSED(bmain), Scene *UNUSED(scene), 
PointerRNA *ptr)
  {
        ID *id = ptr->id.data;
-       
+ 
 -      /* special updates for cases where rigs try to hook into armature 
drawing stuff
 -       * e.g. Mask Modifier - 'Armature' option
 +      /* 1) special updates for cases where rigs try to hook into armature 
drawing stuff
 +       *    e.g. Mask Modifier - 'Armature' option
 +       * 2) tag armature for copy-on-write, so that selection status (set by 
addons)
 +       *    will update properly, like standard tools do already
         */
        if (id) {
                if (GS(id->name) == ID_AR) {
                        bArmature *arm = (bArmature *)id;
-                       
+ 
                        if (arm->flag & ARM_HAS_VIZ_DEPS) {
 -                              DAG_id_tag_update(id, OB_RECALC_DATA);
 +                              DEG_id_tag_update(id, OB_RECALC_DATA);
                        }
-                       
++
 +                      DEG_id_tag_update(id, DEG_TAG_COPY_ON_WRITE);
                }
                else if (GS(id->name) == ID_OB) {
                        Object *ob = (Object *)id;
                        bArmature *arm = (bArmature *)ob->data;
-                       
+ 
                        if (arm->flag & ARM_HAS_VIZ_DEPS) {
 -                              DAG_id_tag_update(id, OB_RECALC_DATA);
 +                              DEG_id_tag_update(id, OB_RECALC_DATA);
                        }
-                       
++
 +                      DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
                }
        }
-       
+ 
        WM_main_add_notifier(NC_GEOM | ND_DATA, id);
  
        /* spaces that show animation data of the selected bone need updating */
@@@ -279,13 -258,8 +279,13 @@@ static void rna_bone_layer_set(int *lay
  
  static void rna_Bone_layer_set(PointerRNA *ptr, const int *values)
  {
 +      bArmature *arm = (bArmature *)ptr->id.data;
        Bone *bone = (Bone *)ptr->data;
-       
++
        rna_bone_layer_set(&bone->layer, values);
-       
++
 +      arm->layer_used = 0;
 +      rna_Armature_layer_used_refresh(arm, &arm->bonebase);
  }
  
  static void rna_Armature_layer_set(PointerRNA *ptr, const int *values)
@@@ -752,10 -726,9 +752,10 @@@ static void rna_def_bone(BlenderRNA *br
        prop = RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "Bone");
        RNA_def_property_pointer_sdna(prop, NULL, "parent");
 +      RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
        RNA_def_property_ui_text(prop, "Parent", "Parent bone (in same 
Armature)");
        RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
-       
+ 
        /* children (collection) */
        prop = RNA_def_property(srna, "children", PROP_COLLECTION, PROP_NONE);
        RNA_def_property_collection_sdna(prop, NULL, "childbase", NULL);
diff --cc source/blender/makesrna/intern/rna_boid.c
index 98ca58e0edd,8b0623a867c..413cb10422a
--- a/source/blender/makesrna/intern/rna_boid.c
+++ b/source/blender/makesrna/intern/rna_boid.c
@@@ -96,13 -94,13 +96,13 @@@ static void rna_Boids_reset(Main *UNUSE
  {
        if (ptr->type == &RNA_ParticleSystem) {
                ParticleSystem *psys = (ParticleSystem *)ptr->data;
-               
+ 
                psys->recalc = PSYS_RECALC_RESET;
  
 -              DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
 +              DEG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
        }
        else
 -              DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA | 
PSYS_RECALC_RESET);
 +              DEG_id_tag_update(ptr->id.data, OB_RECALC_DATA | 
PSYS_RECALC_RESET);
  
        WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, NULL);
  }
@@@ -110,15 -108,15 +110,15 @@@ static void rna_Boids_reset_deps(Main *
  {
        if (ptr->type == &RNA_ParticleSystem) {
                ParticleSystem *psys = (ParticleSystem *)ptr->data;
-               
+ 
                psys->recalc = PSYS_RECALC_RESET;
  
 -              DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
 +              DEG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
        }
        else
 -              DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA | 
PSYS_RECALC_RESET);
 +              DEG_id_tag_update(ptr->id.data, OB_RECALC_DATA | 
PSYS_RECALC_RESET);
  
 -      DAG_relations_tag_update(bmain);
 +      DEG_relations_tag_update(bmain);
  
        WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, NULL);
  }
diff --cc source/blender/makesrna/intern/rna_brush.c
index d227d7a3dbe,71cdb24ffdc..75d05115006
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@@ -705,12 -690,11 +705,12 @@@ static void rna_def_brush_texture_slot(
        prop = RNA_def_property(srna, "random_angle", PROP_FLOAT, PROP_ANGLE);
        RNA_def_property_range(prop, 0, M_PI * 2);
        RNA_def_property_ui_text(prop, "Random Angle", "Brush texture random 
angle");
 +      RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
        RNA_def_property_update(prop, 0, "rna_TextureSlot_update");
-       
+ 
        TEXTURE_CAPABILITY(has_texture_angle_source, "Has Texture Angle 
Source");
        TEXTURE_CAPABILITY(has_random_texture_angle, "Has Random Texture 
Angle");
-       TEXTURE_CAPABILITY(has_texture_angle, "Has Texture Angle Source");      
+       TEXTURE_CAPABILITY(has_texture_angle, "Has Texture Angle Source");
  }
  
  static void rna_def_sculpt_capabilities(BlenderRNA *brna)
@@@ -1379,10 -1363,10 +1379,10 @@@ static void rna_def_brush(BlenderRNA *b
        RNA_def_property_pointer_sdna(prop, NULL, "mtex");
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Texture Slot", "");
-       
+ 
        prop = RNA_def_property(srna, "texture", PROP_POINTER, PROP_NONE);
        RNA_def_property_pointer_sdna(prop, NULL, "mtex.tex");
 -      RNA_def_property_flag(prop, PROP_EDITABLE);
 +      RNA_def_property_flag(prop, PROP_EDITABLE | PROP_CONTEXT_UPDATE);
        RNA_def_property_ui_text(prop, "Texture", "");
        RNA_def_property_update(prop, NC_TEXTURE, "rna_Brush_main_tex_update");
  
diff --cc source/blender/makesrna/intern/rna_color.c
index 8e090937605,dbd61cf6450..67fb58b6208
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@@ -158,8 -157,19 +158,8 @@@ static char *rna_ColorRamp_path(Pointer
        /* handle the cases where a single data-block may have 2 ramp types */
        if (ptr->id.data) {
                ID *id = ptr->id.data;
-               
+ 
                switch (GS(id->name)) {
 -                      case ID_MA: /* material has 2 cases - diffuse and 
specular */
 -                      {
 -                              Material *ma = (Material *)id;
 -
 -                              if (ptr->data == ma->ramp_col)
 -                                      path = BLI_strdup("diffuse_ramp");
 -                      

@@ Diff output truncated at 10240 characters. @@

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to