Outliner: Bones appear in different places in different modes #112904

Closed
opened 2023-09-26 14:35:01 +02:00 by Nika Kutsniashvili · 8 comments
Contributor

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.99

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-19 08:47, hash: 78315faf8fbd
Worked: (newest version of Blender that worked as expected)

Short description of error
image
Incosistent behavior when bones appear under Armature in Object Mode, but under Pose in Pose mode. I don't know if it's by design but it's very confusing

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.99 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-19 08:47, hash: `78315faf8fbd` Worked: (newest version of Blender that worked as expected) **Short description of error** ![image](/attachments/c2359ecd-b317-4c39-9d34-f789451ee222) Incosistent behavior when bones appear under Armature in Object Mode, but under Pose in Pose mode. I don't know if it's by design but it's very confusing **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Nika Kutsniashvili added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-26 14:35:02 +02:00
Member

Thanks for the report. I can confirm

Thanks for the report. I can confirm
Julian Eisel added
Module
Animation & Rigging
and removed
Module
User Interface
Interest
Animation & Rigging
labels 2023-09-26 15:43:11 +02:00
Member

The animation module recently introduced the new bone collections to the Outliner, assigning the report to them.

The animation module recently introduced the new bone collections to the Outliner, assigning the report to them.
Member

Yeah. But bug seems to be related to tree drawing. I'll submit the PR
Quick fix to this will be (This will at least not change the order):
Current order is: edit bones -> bone collection -> pose base/channels
Old order was: edit bones -> pose base/ channels -> bone groups (this is because bone groups were created in expand_pose())

diff --git a/source/blender/editors/space_outliner/tree/tree_element_id_object.cc b/source/blender/editors/space_outliner/tree/tree_element_id_object.cc
index 1bd382ca772..3468b36cae7 100644
--- a/source/blender/editors/space_outliner/tree/tree_element_id_object.cc
+++ b/source/blender/editors/space_outliner/tree/tree_element_id_object.cc
@@ -40,9 +40,8 @@ void TreeElementIDObject::expand(SpaceOutliner & /*space_outliner*/) const
   object_.id.newid = (ID *)(&legacy_te_);

   expand_animation_data(object_.adt);
-
-  expand_data();
   expand_pose();
+  expand_data();
   expand_materials();
   expand_constraints();
   expand_modifiers();
Yeah. But bug seems to be related to tree drawing. I'll submit the PR Quick fix to this will be (This will at least not change the order): Current order is: edit bones -> bone collection -> pose base/channels Old order was: edit bones -> pose base/ channels -> bone groups (this is because bone groups were created in expand_pose()) ```Diff diff --git a/source/blender/editors/space_outliner/tree/tree_element_id_object.cc b/source/blender/editors/space_outliner/tree/tree_element_id_object.cc index 1bd382ca772..3468b36cae7 100644 --- a/source/blender/editors/space_outliner/tree/tree_element_id_object.cc +++ b/source/blender/editors/space_outliner/tree/tree_element_id_object.cc @@ -40,9 +40,8 @@ void TreeElementIDObject::expand(SpaceOutliner & /*space_outliner*/) const object_.id.newid = (ID *)(&legacy_te_); expand_animation_data(object_.adt); - - expand_data(); expand_pose(); + expand_data(); expand_materials(); expand_constraints(); expand_modifiers(); ```
Pratik Borhade self-assigned this 2023-09-26 15:59:46 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-09-26 17:27:25 +02:00
Author
Contributor

@PratikPB2123 this is still present in 4.1 beta

@PratikPB2123 this is still present in 4.1 beta
Member

Hi, don't think so. If you see change in "bones" order then this is expected. Bone collection are at same position since my fix

Edit mode Pose mode
bcol-edit-mode bcol-pose-mode
Hi, don't think so. If you see change in "bones" order then this is expected. Bone collection are at same position since my fix | Edit mode | Pose mode | | -- | -- | | ![bcol-edit-mode](/attachments/1260e6f8-0fb8-4742-986c-b04724983f30) | ![bcol-pose-mode](/attachments/4fbf6931-2813-4ec5-bc9b-ef5ba4533312) |
Author
Contributor

Why is that expected? Its very confusing seeing items jump in Outliner when you switch mode.

Why is that expected? Its very confusing seeing items jump in Outliner when you switch mode.
Member

Because two different types of bones are displayed in outliner (edit-bone and pose-bone)
Edit-bones are drawn under Armature and Pose-bones are drawn below Pose tree-element.
This is same since many versions btw.

Because two different types of bones are displayed in outliner (edit-bone and pose-bone) Edit-bones are drawn under `Armature` and Pose-bones are drawn below `Pose` tree-element. This is same since many versions btw.
Author
Contributor

Understandable. But this doesn't seem something that concerns users tbh, thanks.

Understandable. But this doesn't seem something that concerns users tbh, thanks.
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
3 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#112904
No description provided.