Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2021-02-15 15:48:18 +0300
committerVilém Duha <vilda.novak@gmail.com>2021-02-15 15:48:18 +0300
commitecdd010c1eadedb97fa81ea1ba3b44bc06cd4115 (patch)
tree5652057f811aafda290a08372d5f85cbc67ca640 /blenderkit/append_link.py
parent4a7958c848a956c1dd9c318557142c5a5186e8ab (diff)
BlenderKit: fixes - upload and scene append
Upload was wrongly detecting new upload from an asset with ID Scenes appended had upload props on - switched to search(should be moved to window manager, similar as search results, or somehow find a way to have global for every file.)
Diffstat (limited to 'blenderkit/append_link.py')
-rw-r--r--blenderkit/append_link.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/blenderkit/append_link.py b/blenderkit/append_link.py
index 8ec861c9..a8b5c718 100644
--- a/blenderkit/append_link.py
+++ b/blenderkit/append_link.py
@@ -87,6 +87,11 @@ def append_scene(file_name, scenename=None, link=False, fake_user=False):
scene.use_fake_user = True
# scene has to have a new uuid, so user reports aren't screwed.
scene['uuid'] = str(uuid.uuid4())
+
+ #reset ui_props of the scene to defaults:
+ ui_props = bpy.context.scene.blenderkitUI
+ ui_props.down_up = 'SEARCH'
+
return scene