Curve shape keys python data gets mixed up and extra points added #58391
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#58391
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?
System Information
Operating system: Windows 10
Graphics card: Nvidia 1050
Blender Version
Broken: 2.8 Hash: 26d5a3625ed
Worked: (optional) 2.79c
Short description of error
When adding a shape key to a curve object and accessing the data of the shape_keys.key_blocks- [ ].data there are extra data points added and the .co, .handle_left, .handle_right of each point after the 0 index data are mixed up. (example: index 2 will have the .co of index 3 and the .handle_left of index 4 etc.)
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).Curve Error.blend
With a default file:
Added subscriber: @CodyWinchester
Added subscriber: @lichtwerk
Can confirm.
Even not extruding, just moving a point will mess up the values [in this case there are no extra data points added though...]
Added subscriber: @angavrilov
Curve shapekey data is more complicated than coordinates, and even more so in 2.8 after blender/blender@12788906. I suspect python API wrappers don't take that into account.
Shape keys are stored as an unstructured array of floats, and all code that works with them has to independently interpret the layout, so it's easy to miss some places that need updating when changing something...
This issue was referenced by blender/blender@16aa7dfa19
Changed status from 'Open' to: 'Resolved'