After canceling, F-Curve handlers don't go back to original position. #40548

Closed
opened 9 years ago by MarioSottile · 13 comments

Reported in https://developer.blender.org/T40529, but this bug is not related with that bug.

Open the same file.
Select any F-Curve vertex.
Unselect its handlers.
Move the vertex trough X.

What it does? The handlers are moved trough X beside the vertex to avoid multi-Y-values... If you right click to cancel the new location, the handlers don't go back, they stay in the new location.

This bug is in stable version.

Reported in https://developer.blender.org/T40529, but this bug is not related with that bug. Open the same file. Select any F-Curve vertex. Unselect its handlers. Move the vertex trough X. What it does? The handlers are moved trough X beside the vertex to avoid multi-Y-values... If you right click to cancel the new location, the handlers don't go back, they stay in the new location. This bug is in stable version.
Poster

Changed status to: 'Open'

Changed status to: 'Open'
Poster

Added subscriber: @MarioSottile

Added subscriber: @MarioSottile
Poster
[50-F-Curve-handlers-canceled-dont-go-back.blend](https://archive.blender.org/developer/F93663/50-F-Curve-handlers-canceled-dont-go-back.blend)
mont29 commented 9 years ago
Owner

Added subscriber: @mont29

Added subscriber: @mont29
mont29 commented 9 years ago
Owner

Added subscribers: @Sergey, @ideasman42

Added subscribers: @Sergey, @ideasman42
Collaborator

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne
Collaborator

I think we had a similar issue in another area (mesh modelling), but can't recall where exactly ... Essentially this happens because the transform operator affects data that is not itself marked for transform (the deselected handles in this case). Data that is included in the transform will get reset to the original state on cancel, but unselected data does not store the original location.

Solution could be to always include the origin data for the handles, anticipating the transform constraint effect, without actually transforming them.

I think we had a similar issue in another area (mesh modelling), but can't recall where exactly ... Essentially this happens because the transform operator affects data that is not itself marked for transform (the deselected handles in this case). Data that is included in the transform will get reset to the original state on cancel, but unselected data does not store the original location. Solution could be to always include the origin data for the handles, anticipating the transform constraint effect, without actually transforming them.
Sergey commented 9 years ago
Owner

@LukasTonne, this is a right solution i think.

@LukasTonne, this is a right solution i think.
LukasTonne self-assigned this 9 years ago
Collaborator

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Collaborator

There seems to be a lot of complexity in the transform operator for fcurve vertices, resulting from the distinction of modes and the potential description of handle transform in the same TransData instance as their master vertex (TD_MOVEHANDLE1/2 flags).

https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/transform/transform_conversions.c;5aec61f8493f5876a52ec67871148803396ff223$3826

It seems to me that all these different cases are not really necessary: the handle transforms are already stored in separate TransData in some cases (non-translate mode and/or master vertex not selected) - so why not simply do this every time and get rid of all these complicated distinctions? Is there something i'm missing?

(Amount of data can hardly be an argument, you'd have to move thousands to millions of handles for the difference to show, and then all kinds of other issues would probably kick in ...)

There seems to be a lot of complexity in the transform operator for fcurve vertices, resulting from the distinction of modes and the potential description of handle transform in the same `TransData` instance as their master vertex (TD_MOVEHANDLE1/2 flags). https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/transform/transform_conversions.c;5aec61f8493f5876a52ec67871148803396ff223$3826 It seems to me that all these different cases are not really necessary: the handle transforms are already stored in separate `TransData` in some cases (non-translate mode and/or master vertex not selected) - so why not simply do this every time and get rid of all these complicated distinctions? Is there something i'm missing? (Amount of data can hardly be an argument, you'd have to move thousands to millions of handles for the difference to show, and then all kinds of other issues would probably kick in ...)
Collaborator

This issue was referenced by 22fa83173b

This issue was referenced by 22fa83173b326ef1344ceec6623a5562d8b851f1
Collaborator

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
LukasTonne closed this issue 9 years ago
Collaborator

Closed by commit 22fa83173b.

Closed by commit 22fa83173b.
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/BF Blender: 2.8
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/OpenGL Error
legacy project/Retrospective
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#40548
Loading…
There is no content yet.