This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/editors
Sybren A. Stüvel fe35551df2 Asset Browser Space API: add activate_asset_by_id() function
Add an RNA function `activate_asset_by_id(asset_id: ID, deferred: bool)`
to the File Browser space type, which intended to be used to activate an
asset's entry as identified by its `ID *`. Calling it changes the active
asset, but only if the given ID can actually be found.

The activation can be deferred (by passing `deferred=True`) until the
next refresh operation has finished. This is necessary when an asset has
just been added, as it will be loaded by the filebrowser in a background
job.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D10549
2021-03-05 15:11:40 +01:00
..
2021-03-05 14:04:22 +11:00
2021-02-20 15:35:00 +11:00
2021-02-26 16:59:26 +11:00
2021-03-03 12:17:48 +01:00
2021-03-05 14:04:22 +11:00
2021-02-20 15:35:00 +11:00
2021-03-05 14:04:22 +11:00
2021-03-03 12:23:02 +01:00
2021-03-05 14:44:28 +11:00