Deleting Basis Shape Key reverts to previous deleted Shape Key #115194

Open
opened 2023-11-20 16:52:24 +01:00 by Jens · 4 comments

System Information
Operating system: Linux-5.4.0-166-generic-x86_64-with-glibc2.31 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.67

Blender Version
Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash: d0dd92834a08
Worked: Unknown

Short description of error
Following the instructions below an Object gets into a state where deleting the only remaining Shape Key "Basis" reverts the Objects Shape to what the previous deleted Shape Key was.
Deleting the "Basis" should not change the Shape.

Exact steps for others to reproduce the error

  • Duplicate the Default Cube and join both cubes
  • Create Shape Keys "Basis" and "Key 1" on the Cubes
  • In Edit Mode, Edit Shape Key 1 on one of both Cubes
  • Separate the Mesh ob both Cubes into two objects again and join them again.
    Now the Object is in the broken state (see attached Blend file).
  • First delete "Key 1", then delete "Basis". The Object will be in the shape that "Key 1" had.
**System Information** Operating system: Linux-5.4.0-166-generic-x86_64-with-glibc2.31 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03 Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.67 **Blender Version** Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash: `d0dd92834a08` Worked: Unknown **Short description of error** Following the instructions below an Object gets into a state where deleting the only remaining Shape Key "Basis" reverts the Objects Shape to what the previous deleted Shape Key was. Deleting the "Basis" should not change the Shape. **Exact steps for others to reproduce the error** - Duplicate the Default Cube and join both cubes - Create Shape Keys "Basis" and "Key 1" on the Cubes - In Edit Mode, Edit Shape Key 1 on one of both Cubes - Separate the Mesh ob both Cubes into two objects again and join them again. Now the Object is in the broken state (see attached Blend file). - First delete "Key 1", then delete "Basis". The Object will be in the shape that "Key 1" had.
Jens added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-11-20 16:52:24 +01:00

Reproduced

System Information
Operating system: Windows-10-10.0.23590-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.09

Blender Version
Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash: d0dd92834a08
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-18 21:46, hash: 9eba3902c904

Reproduced **System Information** Operating system: Windows-10-10.0.23590-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.09 **Blender Version** Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash: `d0dd92834a08` Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-18 21:46, hash: `9eba3902c904`
Member

A mesh's vertex positions and it's 'Basis' shape key positions are stored independently. Certain operations only affect only one of the two which can cause problems. This can be particularly noticeable when removing all shape keys from an object, because the mesh will go back to displaying the mesh's vertex positions instead of its 'Basis' shape key positions.

In this case, when separating (all of Selection, By Material and By Loose Parts are affected), the parts that were separated into new meshes appear to be incorrectly setting their mesh's vertex positions to the vertex positions of the active shape key, when they should be taking the vertex positions from the mesh's vertex positions instead (or maybe even the reference ('Basis') shape key).

This issue with the Separate operators copying the active shape key positions appears to be present even back in Blender 2.79 and 2.80.

Note that entering and exiting edit mode re-syncs a mesh's vertex positions to its 'Basis' shape key.


I suspect that the crash when deleting the shape key from the Outliner is a separate issue that just also happens to be related to using the Separate operators (I could not reproduce the crash in Blender 2.79 and 2.80).


image
image
image

A mesh's vertex positions and it's 'Basis' shape key positions are stored independently. Certain operations only affect only one of the two which can cause problems. This can be particularly noticeable when removing all shape keys from an object, because the mesh will go back to displaying the mesh's vertex positions instead of its 'Basis' shape key positions. In this case, when separating (all of `Selection`, `By Material` and `By Loose Parts` are affected), the parts that were separated into new meshes appear to be incorrectly setting their mesh's vertex positions to the vertex positions of the active shape key, when they should be taking the vertex positions from the mesh's vertex positions instead (or maybe even the reference ('Basis') shape key). This issue with the Separate operators copying the active shape key positions appears to be present even back in Blender 2.79 and 2.80. Note that entering and exiting edit mode re-syncs a mesh's vertex positions to its 'Basis' shape key. --- I suspect that the crash when deleting the shape key from the Outliner is a separate issue that just also happens to be related to using the Separate operators (I could not reproduce the crash in Blender 2.79 and 2.80). --- ![image](/attachments/1e1a544b-46b5-40ab-a259-5b5397ccb326) ![image](/attachments/ddd42672-9480-4370-bbe7-807626cd94c2) ![image](/attachments/f9f93344-9748-459e-82a7-d07ee380c301)

Can confirm the crash, that actually seems unrelated as @Mysteryem suggests - I can reproduce that issue with just adding 2 keys and deleting it from outliner.

I can also rerpoduce the reported issue so will confirm

Can confirm the crash, that actually seems unrelated as @Mysteryem suggests - I can reproduce that issue with just adding 2 keys and deleting it from outliner. I can also rerpoduce the reported issue so will confirm
Member

Hi, thanks for the report. Can confirm. Re: deleting from outliner, it's a different bug which is being tracked here: #108407

Edit: Had this page open for some time and I missed Richard's comment 😅

Hi, thanks for the report. Can confirm. Re: deleting from outliner, it's a different bug which is being tracked here: #108407 Edit: Had this page open for some time and I missed Richard's comment 😅
Pratik Borhade changed title from Deleting Basis Shape Key reverts to previous deleted Shape Key. Deleting Shape Key in Outliner crashes Blender. to Deleting Basis Shape Key reverts to previous deleted Shape Key 2023-11-22 07:22:28 +01:00
Pratik Borhade added
Module
Modeling
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-11-22 07:23:14 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115194
No description provided.