mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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`.
This commit is contained in:
parent
da14a482f2
commit
052c22199d
1 changed files with 2 additions and 0 deletions
|
|
@ -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'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue