Page MenuHome

Overrides: Can't override Python properties
Closed, ResolvedPublicTO DO

Description

System Information
Operating system: Linux-5.3.0-7629-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.44

Blender Version
Broken: version: 2.90.0 Alpha, branch: HEAD, commit date: 2020-07-02 12:26, hash: rBf58f09c9a910

Short description of error
For example, the built-in Bone Selection Sets addon stores some things as python properties:

bpy.types.Object.selection_sets = CollectionProperty(
        type=SelectionSet, ...)
bpy.types.Object.active_selection_set = IntProperty(...)

When linking an armature and making a library override of it, these properties can't be edited and can't be overridden. I tried adding options={'LIBRARY_EDITABLE'} to these property definitions, but it didn't seem to make a difference. I also tried drawing them on the UI directly (as sliders) and storing them in bpy.types.Armature instead of bpy.types.Object, but to no avail.

Exact steps for others to reproduce the error

  • Enable Bone Selection Sets addon

  • Link the collection in above file to a new file
  • Make Library Override->Armature
  • See how Selection Sets are grayed out - you can't change the active selection set, and you can't rename any of them.

CC @Bastien Montagne (mont29) Is this supposed to be supported? I couldn't find a todo task, sorry if I'm being blind or dumb.

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Needs Information from User.EditedJul 3 2020, 7:29 PM

Well, the tooltip says:

Disabled: Can't edit this property from an override data-block

I'm not familiar with this area, but from what I see, it doesn't look like a bug.
Otherwise the limitation would not be described in the blender itself.
Did I get something wrong?

I suggest using other channels for questions like that: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on what is considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

I poked Bastien IRL and from what I understood/from what I remember, he said it's supposed to be working, so I think it might be a bug. But it's possible he misunderstood what I was asking about. *poke poke* @Bastien Montagne (mont29)

If this part of library overrides is still work in progress(an so this is not a bug) then ofc feel free to close this. But, this does mean that we had to go back to using proxies still, which makes us all sad! D:

Bastien Montagne (mont29) changed the subtype of this task from "Report" to "To Do".Jul 4 2020, 1:01 PM

This is more a TODO than really a bug, since it was never implemented. But thanks for the report, easier to keep track of this and not forget about it then. ;)