Bezier Curve handles stopped moving towards/away from Bezier Point with Scale #86046

Closed
opened 2021-02-27 09:52:09 +01:00 by Sergey Kritskiy · 11 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-25 05:34, hash: 0e1c6a29cb
Worked: 2.92 Release

Short description of error
In 2.92 I'm able to use Scale on a single Curve Handle to move it away or towards bezier Point:

292.gif

In the latest update of 2.93 I'm not able to do that:

293.gif

Exact steps for others to reproduce the error

  1. create a Bezier Curve
  2. Go to Edit Mode and select a point Handle
  3. Use Scale (S) to move the Handle

Uploading a scene just for sanity check:
curve.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-25 05:34, hash: `0e1c6a29cb` Worked: 2.92 Release **Short description of error** In 2.92 I'm able to use `Scale` on a single Curve Handle to move it away or towards bezier Point: ![292.gif](https://archive.blender.org/developer/F9845782/292.gif) In the latest update of 2.93 I'm not able to do that: ![293.gif](https://archive.blender.org/developer/F9845786/293.gif) **Exact steps for others to reproduce the error** 1) create a Bezier Curve 2) Go to Edit Mode and select a point Handle 3) Use `Scale` (`S`) to move the Handle Uploading a scene just for sanity check: [curve.blend](https://archive.blender.org/developer/F9845796/curve.blend)

Added subscriber: @Sergey-Kritskiy

Added subscriber: @Sergey-Kritskiy
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

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

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

I can confirm this on the latest 2.93.0 Alpha, branch: master, commit date: 2021-02-27 12:08, hash: 4b16cb1e9a. This seem like a regression.

I can confirm this on the latest 2.93.0 Alpha, branch: master, commit date: 2021-02-27 12:08, hash: `4b16cb1e9a`. This seem like a regression.

Added subscriber: @dilithjay

Added subscriber: @dilithjay

Hi. So I was taking a look at this bug and I found the following line (line 231) in source/blender/editors/transform/transform_convert_curve.c:

copy_v3_v3(td->center,  bezt->vec[(hide_handles || (t->around == V3D_AROUND_LOCAL_ORIGINS) ||  (bezt->f2 & SELECT)) ? 1 : 0]);

Turns out, if I replace the entire condition part and replace it with 1, the bug seems to be fixed; meaning that it was previously rotating about its own center instead of that of the control point. Can someone point out the purpose of the condition? The above seems to be reachable only when the handle is selected. So shouldn't its center always be that of the control point? Thanks.

Hi. So I was taking a look at this bug and I found the following line (line 231) in `source/blender/editors/transform/transform_convert_curve.c`: ``` copy_v3_v3(td->center, bezt->vec[(hide_handles || (t->around == V3D_AROUND_LOCAL_ORIGINS) || (bezt->f2 & SELECT)) ? 1 : 0]); ``` Turns out, if I replace the entire condition part and replace it with 1, the bug seems to be fixed; meaning that it was previously rotating about its own center instead of that of the control point. Can someone point out the purpose of the condition? The above seems to be reachable only when the handle is selected. So shouldn't its center always be that of the control point? Thanks.
Member

Dug into this a bit further. The reason is this commit 201ab7c540. The value t->around is no longer set to V3D_AROUND_LOCAL_ORIGINS when it should be.

So shouldn't its center always be that of the control point?

No, because you can select more than one handle of multiple control points. And in that case, it is important that the center is that of the handle so the real pivot can be calculated.

Dug into this a bit further. The reason is this commit 201ab7c540. The value `t->around` is no longer set to `V3D_AROUND_LOCAL_ORIGINS` when it should be. > So shouldn't its center always be that of the control point? No, because you can select more than one handle of multiple control points. And in that case, it is important that the center is that of the handle so the real pivot can be calculated.
Falk David self-assigned this 2021-03-19 11:08:16 +01:00

No, because you can select more than one handle of multiple control points. And in that case, it is important that the center is that of the handle so the real pivot can be calculated.

Oh, right. My bad. Thanks for the clarification.

> No, because you can select more than one handle of multiple control points. And in that case, it is important that the center is that of the handle so the real pivot can be calculated. Oh, right. My bad. Thanks for the clarification.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Resolved by fce3e6646e

Resolved by fce3e6646e
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#86046
No description provided.