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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-03-26 16:30:45 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-03-26 16:41:37 +0300
commit6f7392312c9dbb0e7e4c0aa464d928ed334ffce8 (patch)
tree00047f51b902fc19441fae23e8f799d06b6fabea /source/blender/editors/interface
parent8754ad4dc1959f5d2ad8e3ad936cbd8871f5052c (diff)
Fix T62929: Linked To Scene Object cannot be made single user.
Code was still 2.7x one here, Object's IDtemplate in properties editor is now based on current view layer's collection of objects, not scene's one anymore.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_templates.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 3b52984df3e..213c9df4b29 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -501,15 +501,14 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
if (id) {
const bool do_scene_obj = (
(GS(id->name) == ID_OB) &&
- (template_ui->ptr.type == &RNA_SceneObjects));
+ (template_ui->ptr.type == &RNA_LayerObjects));
/* make copy */
if (do_scene_obj) {
Main *bmain = CTX_data_main(C);
Scene *scene = CTX_data_scene(C);
ED_object_single_user(bmain, scene, (struct Object *)id);
- DEG_id_tag_update(&scene->id, ID_RECALC_SELECT);
- WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
+ WM_event_add_notifier(C, NC_WINDOW, NULL);
DEG_relations_tag_update(bmain);
}
else {