ALTERNATE improvements to spline behavior with a SINGLE handle selected #36048

Closed
opened 2013-07-07 21:15:29 +02:00 by David Jeske · 6 comments

%%%This patch is an ALTERNATIVE to my previous spline patch here:

http://projects.blender.org/tracker/?func=detail&aid=36029&group_id=9&atid=127

Personally, I think the OTHER patch is MUCH better and more intuitive behavior. However, this patch is more conservative in that it changes NOTHING about the way the menu works.. .it merely adds tooltips, fixes some visual bugs, adds single-handle scaling, and adds a rotation-constraint visual.

I think it is MUCH better to evaluate these patches by trying them out than by thinking about it. Set a handle-pair to "align", then choose one handle and choose "Free". Patch [#36029] will always allow that handle to be freely rotated. This patch keeps the current behavior that the handle freely rotates, unless the other handle type is align, in which case the other handle becomes rotation constrained.

A good way to understand the difference is to consider the tooltips.

Patch [#36029] KEEP-DOCS / FIX-BEHAVIOR
Free - allows the handle to rotate independently from the other handle.
Align - aligns the handle with the other handle
Align + Constrain - aligns the handle with the other hand and constrains it's rotation

Patch [this one] KEEP-BEHAVIOR / FIX-DOCS
Free - Align the handle(s) to the other. If the other handle is Free, Vector, or Auto, this will cause the handle to be rotation constrained.
Align - Allow the handle(s) to freely rotate. To allow the handle to rotate independently, set the other handle to Free, Vector, or Auto.

%%%

%%%This patch is an ALTERNATIVE to my previous spline patch here: http://projects.blender.org/tracker/?func=detail&aid=36029&group_id=9&atid=127 Personally, I think the OTHER patch is *MUCH* better and more intuitive behavior. However, this patch is more conservative in that it changes NOTHING about the way the menu works.. .it merely adds tooltips, fixes some visual bugs, adds single-handle scaling, and adds a rotation-constraint visual. I think it is MUCH better to evaluate these patches by trying them out than by thinking about it. Set a handle-pair to "align", then choose one handle and choose "Free". Patch [#36029] will always allow that handle to be freely rotated. This patch keeps the current behavior that the handle freely rotates, unless the other handle type is align, in which case the other handle becomes rotation constrained. A good way to understand the difference is to consider the tooltips. Patch [#36029] KEEP-DOCS / FIX-BEHAVIOR Free - allows the handle to rotate independently from the other handle. Align - aligns the handle with the other handle Align + Constrain - aligns the handle with the other hand and constrains it's rotation Patch [this one] KEEP-BEHAVIOR / FIX-DOCS Free - Align the handle(s) to the other. If the other handle is Free, Vector, or Auto, this will cause the handle to be rotation constrained. Align - Allow the handle(s) to freely rotate. To allow the handle to rotate independently, set the other handle to Free, Vector, or Auto. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%small typo in the tooltip on v1, new v2 uploaded%%%

%%%small typo in the tooltip on v1, new v2 uploaded%%%
Author

%%%also, looks like my summary above was wrong at the end.. it should say...

Patch [this one] KEEP-BEHAVIOR / FIX-DOCS

Align - Align the handle(s) to the other. If the other handle is Free, Vector, or Auto, this will cause the handle to be rotation constrained.
Free - Allow the handle(s) to freely rotate. To allow the handle to rotate independently, set the other handle to Free, Vector, or Auto.
%%%

%%%also, looks like my summary above was wrong at the end.. it should say... Patch [this one] KEEP-BEHAVIOR / FIX-DOCS Align - Align the handle(s) to the other. If the other handle is Free, Vector, or Auto, this will cause the handle to be rotation constrained. Free - Allow the handle(s) to freely rotate. To allow the handle to rotate independently, set the other handle to Free, Vector, or Auto. %%%
Author

%%%.... as I've mentioned in my bf-committers thread on these two patches.. I now see the value in accepting this patch vs the other one, because it's the conservative choice which does not change behavior (it just fixes bugs, adds tooltips, and adds a rotation constraint visual)

The patch might need one portability tweak, which is to use int instead of the enum in the function paramater declaration.. it compiles fine on gcc, but I'm told MSVC might not like this because of the way blender avoids header includes and standard C dislikes forward declared enums.

void BKE_nurbList_handles_set(struct ListBase *editnurb, enum eHandleSetModes mode)

so blender uses this instead..

void BKE_nurbList_handles_set(struct ListBase editnurb, int mode) / enum eHandleSetModes mode */
%%%

%%%.... as I've mentioned in my bf-committers thread on these two patches.. I now see the value in accepting this patch vs the other one, because it's the conservative choice which does not change behavior (it just fixes bugs, adds tooltips, and adds a rotation constraint visual) The patch might need one portability tweak, which is to use int instead of the enum in the function paramater declaration.. it compiles fine on gcc, but I'm told MSVC might not like this because of the way blender avoids header includes and standard C dislikes forward declared enums. void BKE_nurbList_handles_set(struct ListBase *editnurb, enum eHandleSetModes mode) so blender uses this instead.. void BKE_nurbList_handles_set(struct ListBase *editnurb, int mode) /* enum eHandleSetModes mode */ %%%

%%%closing requested by David Jeske%%%

%%%closing requested by David Jeske%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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
2 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#36048
No description provided.