Blender Git Commit Log
Git Commits -> Revision 222fd1a
Revision 222fd1a by Julian Eisel (master) September 23, 2021, 12:46 (GMT) |
Asset Browser: Disable metadata editing for external asset libraries 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 |
Commit Details:
Full Hash: 222fd1abf09ae65b7082f58bf2ac43422c77162c
Parent Commit: 059d01d
Lines Changed: +123, -31