Bone roll keeps changing when switching between EDIT <-> OBJECT mode #23954

Closed
opened 2010-09-22 22:09:07 +02:00 by Tim Baker · 4 comments

%%%Seen in current beta as well as SVN r32066 (Win32).

In the attached .blend file take note of the bone roll for the selected bone 'Bip01_l_toe2'. Now tab repeated between OBJECT and EDIT modes and watch the bone roll change to some seemingly random value.

You can set the bone roll to '0' or any other value and it behaves the same when tabbing. The matching bone on the other foot 'Bip01_r_toe2' behaves the same.
None of the other bones I checked had this behaviour.%%%

%%%Seen in current beta as well as SVN r32066 (Win32). In the attached .blend file take note of the bone roll for the selected bone 'Bip01_l_toe2'. Now tab repeated between OBJECT and EDIT modes and watch the bone roll change to some seemingly random value. You can set the bone roll to '0' or any other value and it behaves the same when tabbing. The matching bone on the other foot 'Bip01_r_toe2' behaves the same. None of the other bones I checked had this behaviour.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%Tracked down the cause but not sure what the proper solution is. In armature.c it seems the 0.0000000000001 is too strict,
maybe use FLT_EPSILON instead?

void vec_roll_to_mat3(float *vec, float roll, float mat- [ ][3])
{

  normalize_v3_v3(nor, vec);
  cross_v3_v3v3(axis,target,nor);
  if (dot_v3v3(axis,axis) > 0.0000000000001) {%%%
%%%Tracked down the cause but not sure what the proper solution is. In armature.c it seems the 0.0000000000001 is too strict, maybe use FLT_EPSILON instead? void vec_roll_to_mat3(float *vec, float roll, float mat- [ ][3]) { ``` normalize_v3_v3(nor, vec); cross_v3_v3v3(axis,target,nor); if (dot_v3v3(axis,axis) > 0.0000000000001) {%%%

%%%tested with a lower epsilon value, 0.00001 is stable.
fixed in svn r32067.%%%

%%%tested with a lower epsilon value, 0.00001 is stable. fixed in svn r32067.%%%

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
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
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#23954
No description provided.