Wrong Undo on curves #41226

Closed
opened 2014-07-28 21:51:38 +02:00 by Karja Krähwald · 17 comments

System Information
Windows 7 64, HD 5770

Blender Version
Broken: 2.71 release & e0d8e62

Short description of error
Extrude and Undo on a curves startpoint messes up the point order (numbering?) when Undo is executed in a different "Editmode session".
This negatively affects points that are assigned to a Hook.

Its complicated to describe, please take a look in the file.

Exact steps for others to reproduce the error
ConfusedHookpoints.blend

Setup for Hook:

  1. Add a NurbsPath (Curve), add an Empty.
  2. Give Curve a Hook Modifier.
  3. Set Empty as Hook, and assign the middle control point of Curve.
  • Move Empty, Curve point should move aswell.

Bug:

  1. Go into Curves Editmode.
  2. Select the starting point and extrude one time.
  3. Leave Editmode and enter again = different Editmode.
  4. Undo your extruded starting point with STRG+Z.
    Problem:
    The assigned Hook point has changed. (move Empty)
    It has shifted one point forward, related to extrude actions.
**System Information** Windows 7 64, HD 5770 **Blender Version** Broken: 2.71 release & e0d8e62 **Short description of error** Extrude and Undo on a curves startpoint messes up the point order (numbering?) when Undo is executed in a different "Editmode session". This negatively affects points that are assigned to a Hook. Its complicated to describe, please take a look in the file. **Exact steps for others to reproduce the error** [ConfusedHookpoints.blend](https://archive.blender.org/developer/F100059/ConfusedHookpoints.blend) >Setup for Hook: 1. Add a NurbsPath (Curve), add an Empty. 2. Give Curve a Hook Modifier. 3. Set Empty as Hook, and assign the middle control point of Curve. - Move Empty, Curve point should move aswell. >Bug: 1. Go into Curves Editmode. 2. Select the starting point and extrude one time. 3. Leave Editmode and enter again = different Editmode. 4. Undo your extruded starting point with STRG+Z. Problem: The assigned Hook point has changed. (move Empty) It has shifted one point forward, related to extrude actions.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @karja

Added subscriber: @karja
Sergey Sharybin was assigned by Bastien Montagne 2014-07-29 12:33:05 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Sergey, you know this area of code. :)

Sergey, you know this area of code. :)

This issue was referenced by e042c8428f

This issue was referenced by e042c8428f8c0c0a72cdd23d2c058c20ab5745ed

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit e042c8428f.

Closed by commit e042c8428f.

Committed the fix, please give it a good test with tonight's builds from builder.b.o.

Committed the fix, please give it a good test with tonight's builds from builder.b.o.

Hey,

I have tested bcbbed0 from Thu Jul 31 15:12:50 2014 with the same file.

  • If i extrude the startpoint 1 time, it works in every scenario.

  • If i extrude the startpoint 2 times, the Hookpoint changes now without additional Undo after leaving Editmode. I cant correct this with Undo in the same Editmode, i now have to be in a different Editmode for Undo.

  • If i extrude the startpoint 3 times, the Hookpoint stays correct. But Undo dont work correct anymore for the Hookpoint, no matter what Editmode. Also Blender tends to crash quite often if i Undo (Object&Editmode).

Hey, I have tested bcbbed0 from Thu Jul 31 15:12:50 2014 with the same file. - If i extrude the startpoint 1 time, it works in every scenario. - If i extrude the startpoint 2 times, the Hookpoint changes now without additional Undo after leaving Editmode. I cant correct this with Undo in the same Editmode, i now have to be in a different Editmode for Undo. - If i extrude the startpoint 3 times, the Hookpoint stays correct. But Undo dont work correct anymore for the Hookpoint, no matter what Editmode. Also Blender tends to crash quite often if i Undo (Object&Editmode).

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

This issue was referenced by 2f2bf513e9

This issue was referenced by 2f2bf513e97a3955f3d98582bf7e837ca44b8009

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 2f2bf513e9.

Closed by commit 2f2bf513e9.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Eh, was reverting previous fix which wasn't correct. Still looking into a more proper one.

Eh, was reverting previous fix which wasn't correct. Still looking into a more proper one.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

After rather long investigation we came to a conclusion this is not gonna to work reliably with the current separation of global and local undo stacks. Even if steps above are supported there are still loads of ways to confuse the system.

Also, the same exact issues happens for the meshes, they might be not so trivial to reproduce, but it's still possible to have rather simple setup which demonstrates the same issue.

Moving it to a undo stack TODO: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#Undo_stack

There are quite a few issues are caused by the local undo stacks and modifying global data..

After rather long investigation we came to a conclusion this is not gonna to work reliably with the current separation of global and local undo stacks. Even if steps above are supported there are still loads of ways to confuse the system. Also, the same exact issues happens for the meshes, they might be not so trivial to reproduce, but it's still possible to have rather simple setup which demonstrates the same issue. Moving it to a undo stack TODO: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#Undo_stack There are quite a few issues are caused by the local undo stacks and modifying global data..
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#41226
No description provided.