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:
2021-11-16 12:35:39 +01:00
parent da14a482f2
commit 052c22199d

View File

@@ -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'}