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/blenkernel/intern/anim_sys.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/blenkernel/intern/anim_sys.c')
-rw-r--r--source/blender/blenkernel/intern/anim_sys.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index 4a939180fb0..952859e0c7b 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -59,6 +59,7 @@
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_nla.h"
+#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_texture.h"
@@ -365,6 +366,10 @@ void BKE_animdata_copy_id_action(Main *bmain, ID *id, const bool set_newid)
BKE_action_copy(bmain, adt->tmpact);
}
}
+ bNodeTree *ntree = ntreeFromID(id);
+ if (ntree) {
+ BKE_animdata_copy_id_action(bmain, &ntree->id, set_newid);
+ }
}
/* Merge copies of the data from the src AnimData into the destination AnimData */