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:
authorSybren A. Stüvel <sybren@blender.org>2021-11-16 14:35:39 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-11-16 14:35:39 +0300
commit052c22199da8ccbccd36be2edfb043f78dcc0d6b (patch)
tree21017c3c797cf72cec15fdb101d501b051178bfd
parentda14a482f281e8d330ef5210ef22335a43eb726c (diff)
Asset Browser: use one more refresh operator
Refreshing the assets requires `file_OT_asset_library_refresh` in the asset browser, and `asset_OT_list_refresh` for the asset view. Both are now done from `ASSET_OT_open_containing_blend_file`.
-rw-r--r--release/scripts/startup/bl_operators/assets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/assets.py b/release/scripts/startup/bl_operators/assets.py
index a8ee44037d6..58f02201905 100644
--- a/release/scripts/startup/bl_operators/assets.py
+++ b/release/scripts/startup/bl_operators/assets.py
@@ -148,6 +148,8 @@ class ASSET_OT_open_containing_blend_file(Operator):
bpy.ops.file.refresh()
if bpy.ops.asset.list_refresh.poll():
bpy.ops.asset.list_refresh()
+ if bpy.ops.file.asset_library_refresh.poll():
+ bpy.ops.file.asset_library_refresh()
self.cancel(context)
return {'FINISHED'}