Operator preset save doesn't serialize PropertyGroups *Postponed after 2.63 release*, PATCH ATTACHED. #30905
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#30905
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?
%%%When an operator has a PropertyGroup property (either via a PointerProperty or a CollectionProperty), then preset save (bpy.ops.wm.operator_preset_add) doesn's serialize the PropertyGroup but rather uses its "repr()", which means the preset file then contains 'op.item = <bpy_struct, Item("")>'
Steps to reproduce:
Expected result:
The property group is serialized as a dict
I do not have much time currently but I might write a patch, I found where the preset save is and it is straight python.%%%
Changed status to: 'Open'
%%%This is a known limitation, would be nice to add support though.%%%
%%%At least the system shouldn't create erroneous python scripts. Currently it syntay errors%%%
%%%I wrote a patch, attached here.
Can you review it (coding style, walking method, ...) ? Thanks.%%%
%%%Thanks for writing the patch, will check after release.%%%
%%%applied fix based on your patch r46560.
closing.%%%
Changed status from 'Open' to: 'Resolved'