Files
test2/source/blender/blenkernel
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
..
2020-12-16 16:26:23 +11:00
2021-01-04 17:38:11 +11:00
2021-02-10 09:38:24 +11:00
2021-02-13 17:44:51 +11:00
2020-12-16 16:26:23 +11:00
2020-12-16 16:26:23 +11:00
2020-10-01 14:29:45 +02:00
2020-12-15 17:19:55 +01:00
2020-12-15 12:01:45 +01:00
2021-02-17 14:50:08 +11:00
2021-02-26 16:55:58 +11:00
2021-03-02 16:53:56 +01:00
2020-12-16 16:26:23 +11:00
2020-12-16 16:26:23 +11:00
2021-02-26 16:55:58 +11:00