Commit: ba17d53e599ddf780ba54cc2bb64554e1f1e8690
Author: Dalai Felinto
Date:   Thu Nov 30 10:57:48 2017 -0200
Branches: blender2.8
https://developer.blender.org/rBba17d53e599ddf780ba54cc2bb64554e1f1e8690

Fix lightprobe single user not working

===================================================================

M       source/blender/editors/object/object_relations.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to