Custom Properties Edit popup clears bpy.types properties if value is set to different type (string / int / float / list) #38778
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#38778
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ID-Properties as well as bpy.types properties show up in the Custom Properties panel, although they are separated from Python perspective (they aren't internally).
If you add a bpy.types property...
it will show in the Custom Properties panel, and you can change it there (even to
123
or[1,2,3]
, it will be interpreted as string).But if you click the Edit button and type e.g.
123
into the popup's value field and confirm, the property (bpy.context.object.prop
) will be cleared and disappear from panel (there's no ID property with this name either).If the property is a bpy.types property, there shouldn't be type casting, and it would avoid losing this property.
There's another issue if you use
.prop
as property name:Try to add an ID property in the panel by clicking Add - it will try to create a property with the default name
prop
(+number if needed). But as there's a bpy.types property with that name, it seems to name-conflict and is removed immediately.I guess it should check for bpy.types properties and use a name not already in use?
Changed status to: 'Open'
Added subscriber: @CodeManX
Added subscriber: @soppera
Removed subscriber: @soppera
Added subscribers: @ideasman42, @Sergey
@ideasman42, think this one is for you?
Added subscriber: @SatishGoda
This issue was referenced by blender/blender-addons-contrib@bb62f9a582
This issue was referenced by blender/blender@bb62f9a582
Changed status from 'Open' to: 'Resolved'
Closed by commit blender/blender@bb62f9a582.