Undo in Armature EditMode ignores changes to other IDs #82816

Open
opened 2020-11-18 16:14:25 +01:00 by tsgcpp · 8 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-17 22:10, hash: 3e325c35f8
Worked: (newest version of Blender that worked as expected)

Short description of error
When you rename bones of armatures with some meshes by python scripts and then do Undo (Ctrl +z), then only bone names are reverted and the mesh vertex groups are never reverted.
It seems to happen immediately after from Object mode to Edit mode for armatures.

Exact steps for others to reproduce the error

  • Open "bpy_rename_bone_and_undo_bug_report.blend".
  • Go to Armature Edit mode.
  • Run script "rename.py". It will rename selected bones and the mesh vertex groups.
  • Do undo (Ctrl +z)
  • Then you will see only bone names are reverted and the mesh vertex groups aren't reverted.

bpy_rename_bone_and_undo_bug_report.blend

It will lost bone deformations.
I thinks it will cause some human errors.

Thanks!

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-17 22:10, hash: `3e325c35f8` Worked: (newest version of Blender that worked as expected) **Short description of error** When you rename bones of armatures with some meshes by python scripts and then do Undo (Ctrl +z), then only bone names are reverted and the mesh vertex groups are never reverted. It seems to happen immediately after from Object mode to Edit mode for armatures. **Exact steps for others to reproduce the error** * Open "bpy_rename_bone_and_undo_bug_report.blend". * Go to Armature Edit mode. * Run script "rename.py". It will rename selected bones and the mesh vertex groups. * Do undo (Ctrl +z) * Then you will see only bone names are reverted and the mesh vertex groups aren't reverted. [bpy_rename_bone_and_undo_bug_report.blend](https://archive.blender.org/developer/F9317391/bpy_rename_bone_and_undo_bug_report.blend) It will lost bone deformations. I thinks it will cause some human errors. Thanks!
Author

Added subscriber: @tsgcpp

Added subscriber: @tsgcpp

#97723 was marked as duplicate of this issue

#97723 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Thanks for the report I can confirm the problem.
The script makes it easier to reproduce.

In fact, the undo only partially reverts the operator's result.

It must be a conflict in the context, but in fact it shouldn't happen.

Not sure if this is for the #animation_rigging team or #data_assets_i_o

Thanks for the report I can confirm the problem. The script makes it easier to reproduce. In fact, the undo only partially reverts the operator's result. It must be a conflict in the context, but in fact it shouldn't happen. Not sure if this is for the #animation_rigging team or #data_assets_i_o

Added subscriber: @mont29

Added subscriber: @mont29

This is usual same issue, armature editmode uses non-memfile undo steps, which ignores changes made to other IDs... Not much to do here, this is known limitation.

This is usual same issue, armature editmode uses non-memfile undo steps, which ignores changes made to other IDs... Not much to do here, this is known limitation.
Bastien Montagne changed title from Undo won't work correctly when you rename bones of armatures with some meshes by python scripts. to Undo in Armature EditMode ignores changes to other IDs 2020-11-23 11:09:47 +01:00

Added subscribers: @Cigitia, @lichtwerk

Added subscribers: @Cigitia, @lichtwerk
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:35:58 +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
4 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#82816
No description provided.