Fixes for particle system and physics
[blender.git] / source / blender / editors / object / object_relations.c
index d61c5334ee681f646fbcdc6c2f93fdd85882ace1..867b807c908d58e3efefb4629f871c3922d3d2fe 100644 (file)
@@ -1872,6 +1872,9 @@ static void single_mat_users(Main *bmain, Scene *scene, ViewLayer *view_layer, V
                                        if (ma->id.us > 1) {
                                                man = BKE_material_copy(bmain, ma);
                                                BKE_animdata_copy_id_action(bmain, &man->id, false);
+                                               if (man->nodetree != NULL) {
+                                                       BKE_animdata_copy_id_action(bmain, &man->nodetree->id, false);
+                                               }
 
                                                man->id.us = 0;
                                                assign_material(bmain, ob, man, a, BKE_MAT_ASSIGN_USERPREF);