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:
authorDalai Felinto <dfelinto@gmail.com>2017-11-30 15:57:48 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-11-30 16:08:48 +0300
commitba17d53e599ddf780ba54cc2bb64554e1f1e8690 (patch)
tree616d09a5d7a04cdab913c8d7bb6a369e592c7b84 /source/blender
parentedef55980818d0e8707ead7d7bda52d0ad364734 (diff)
Fix lightprobe single user not working
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/object/object_relations.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 5de113b30a0..895777fc63a 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -80,6 +80,7 @@
#include "BKE_library_override.h"
#include "BKE_library_query.h"
#include "BKE_library_remap.h"
+#include "BKE_lightprobe.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mball.h"
@@ -1841,6 +1842,9 @@ static void single_obdata_users(Main *bmain, Scene *scene, ViewLayer *view_layer
case OB_SPEAKER:
ob->data = ID_NEW_SET(ob->data, BKE_speaker_copy(bmain, ob->data));
break;
+ case OB_LIGHTPROBE:
+ ob->data = ID_NEW_SET(ob->data, BKE_lightprobe_copy(bmain, ob->data));
+ break;
default:
if (G.debug & G_DEBUG)
printf("ERROR %s: can't copy %s\n", __func__, id->name);