From 4563849c1b3ca6eb7418ea2870f35a624ec04f81 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 19 Dec 2018 15:36:09 +0100 Subject: Fixes for particle system and physics - Silence harmless error print about relation. Object with particle system which doesn't use physics will not have point cache component. - Tag relations for update when particle system physics type change. This ensures correct state of point cache component. This is all part of T59258. --- source/blender/editors/object/object_relations.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/object') diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index d61c5334ee6..867b807c908 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -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); -- cgit v1.2.3