Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-28 22:02:40 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-28 22:02:40 +0300
commitdb0568329e46cf58eed2d0f8ab633bdc52251bfc (patch)
treeda79f61dcf41e1a3397acd0b1c80c5a76aa98348 /source/blender/editors/object/object_relations.c
parent574e7903407044a18c39af5eed6576744cd5d106 (diff)
Fix T65175: nodetree animation stays linked after duplicating a lamp
Reviewers: mont29, brecht Maniphest Tasks: T65175 Differential Revision: https://developer.blender.org/D4956
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r--source/blender/editors/object/object_relations.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 6df012cdc80..6879a7f4a06 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -1967,9 +1967,6 @@ static void single_mat_users(
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);