Bone relation lines: draw between axis points #105427
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#105427
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dr.sybren/blender:anim/bone-relation-lines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Design discussions in #105489
Add control overhow bone relation lines are drawn. Instead of always drawing from the head
of the child to the tail of the parent, give users a choice for the parent side of the line. This can now be toggled between the head and the tail of the bone, where the tail is Blender's original behaviour and is retained as default value.
This PR is related to #105466.
https://wiki.blender.org/wiki/Reference/Release_Notes/3.6/Animation_Rigging#Bone_Relation_Lines
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Re-building after feedback on the design task #105489
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
I removed @jerbot as reviewer, as in his comment on the design task is enough for me ;-)
Looks right to me. Next step is to look at the ball display type and see if relationship lines can be drawn between bone heads that are already flagged as "connected". Feels related to this, but mostly useful when using non standard bone types.
Guessing this goes under that task?
Yup, that's for #105466
I only checked the drawing part. Seems fine. The branch inside
draw_bone_bone_line
could be removed but don't think it will harm in this case.@ -2026,0 +2028,4 @@
const float /*bone_tail*/[3],
const float parent_head[3],
const float parent_tail[3],
const short armature_flags)
Can we use
eArmature_Flag
as a type?eArmature_Flag
enum a2aca48300@ -2025,1 +2025,4 @@
static void draw_bone_bone_line(ArmatureDrawContext *ctx,
const float bone_head[3],
const float /*bone_tail*/[3],
We should remove unused parameters in static methods. Compilers are smart, but we should not rely on that.
@ -2023,6 +2023,21 @@ static void pchan_draw_ik_lines(ArmatureDrawContext *ctx,
}
}
static void draw_bone_bone_line(ArmatureDrawContext *ctx,
I feel like this could get a better name. Unless you think this will draw other lines in the near future I'd call it
draw_bone_relationship_lines
Tbh I am not sure if it is
lines
orline
, the functions it calls use plural but it seems like they only draw a single line.apart from my small nitpick about the naming this lgtm
draw_bone_bone_relationship_line
and remove unused parameter dda6a4d1c9Trying to add documentation here.