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:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user