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:
authorClément Foucault <foucault.clem@gmail.com>2018-04-24 13:15:25 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-04-24 13:48:43 +0300
commit8fb9dfbec5fa5b6ed1f94494b6972988605e5c14 (patch)
tree5d7758b2ce47189a6d93d3002634c221245f1f9c /source/blender/blenloader/intern/readfile.c
parent9ff819553520198468bf67b4920b50dc5b047bb6 (diff)
EEVEE: LightProbes: Add Visibility Group to DNA/RNA/UI.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index e8c96cb7d1b..c1539d7edf1 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -7492,11 +7492,13 @@ static void fix_relpaths_library(const char *basepath, Main *main)
static void lib_link_lightprobe(FileData *fd, Main *main)
{
- for (LightProbe *prb = main->speaker.first; prb; prb = prb->id.next) {
+ for (LightProbe *prb = main->lightprobe.first; prb; prb = prb->id.next) {
if (prb->id.tag & LIB_TAG_NEED_LINK) {
IDP_LibLinkProperty(prb->id.properties, fd);
lib_link_animdata(fd, &prb->id, prb->adt);
+ prb->visibility_grp = newlibadr(fd, prb->id.lib, prb->visibility_grp);
+
prb->id.tag &= ~LIB_TAG_NEED_LINK;
}
}