222fd1abf0
Buttons to edit asset metadata are now disabled for assets from an external library (i.e. assets not stored in the current .blend file). Their tooltips explain why they are disabled. Had to do some RNA trickery to disable the metadata properties at RNA level, not at UI script level. The basic idea is: * Local data-block assets set the data-block as owning ID for the asset metadata RNA pointer now. * That way we can use the owner ID to see where the metadata belongs to and decide if it's editable that way. * Additionaly, some Python operators needed better polling so they show as grayed out, and don't just fail. One important thing: Custom properties of the metadata can still be edited. The edits won't be saved however. Would be nice to disable that, but it's currently not supported on BPY/IDProperty/RNA level. Addresses T82943. Differential Revision: https://developer.blender.org/D12127 |
||
---|---|---|
.. | ||
bmesh | ||
__init__.py | ||
add_mesh_torus.py | ||
anim.py | ||
assets.py | ||
clip.py | ||
console.py | ||
constraint.py | ||
file.py | ||
freestyle.py | ||
geometry_nodes.py | ||
image.py | ||
mesh.py | ||
node.py | ||
object_align.py | ||
object_quick_effects.py | ||
object_randomize_transform.py | ||
object.py | ||
presets.py | ||
rigidbody.py | ||
screen_play_rendered_anim.py | ||
sequencer.py | ||
spreadsheet.py | ||
userpref.py | ||
uvcalc_follow_active.py | ||
uvcalc_lightmap.py | ||
vertexpaint_dirt.py | ||
view3d.py | ||
wm.py |