diff options
author | Julian Eisel <julian@blender.org> | 2021-10-26 20:55:51 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-26 21:30:51 +0300 |
commit | 63de6078daa6a757840f1b46b43670a5af4a91b0 (patch) | |
tree | 7a34827cb5cb8cde8386f5ade2f7f289cd2c7e9c /source/blender/editors/space_view3d | |
parent | 4db4a97355672ee27542e45ac9959523567e0053 (diff) |
Fix objects not appearing in Outliner after dragging in from Asset Browser
When dragging in an object from an external asset library from the Asset
Browser, the Outliner wouldn't update.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 0ab39d59aff..92a5efa2268 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -747,6 +747,8 @@ static void view3d_ob_drop_copy_external_asset(wmDrag *drag, wmDropBox *drop) ID *id = WM_drag_asset_id_import(asset_drag, FILE_AUTOSELECT); + WM_event_add_notifier(C, NC_SCENE | ND_LAYER_CONTENT, scene); + RNA_string_set(drop->ptr, "name", id->name + 2); Base *base = BKE_view_layer_base_find(view_layer, (Object *)id); |