Moving bone to another layer doesn't trigger a depsgraph update #101046

Closed
opened 2022-09-14 01:58:12 +02:00 by Tony Reason · 8 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.4.0 Alpha, branch: Timeline-Changes (modified), commit date: 2022-08-05 08:51, hash: 009e1324c9

Short description of error
Adding a Bone to an Armature Layer doesn't trigger a Depsgraph Update initially

Exact steps for others to reproduce the error

  1. Create an Armature with bones
  2. Run the script below
  3. Press M and assign a Bone to an Armature Layer: there is no update until the Bone has been removed or other layers have been assigned.
import bpy
from bpy.app.handlers import persistent

@persistent
def depsgraphUpdatePost(scene, depsgraph):
    for update in depsgraph.updates:
        print("update.id",update.id)
    return

def register():
    bpy.app.handlers.depsgraph_update_post.append(depsgraphUpdatePost)

def unregister():
    bpy.app.handlers.depsgraph_update_post.remove(depsgraphUpdatePost)

if __name__ == "__main__":
    register()

2022-09-13 16-49-21.mp4

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.4.0 Alpha, branch: Timeline-Changes (modified), commit date: 2022-08-05 08:51, hash: `009e1324c9` **Short description of error** Adding a Bone to an Armature Layer doesn't trigger a Depsgraph Update initially **Exact steps for others to reproduce the error** 1. Create an Armature with bones 2. Run the script below 3. Press M and assign a Bone to an Armature Layer: there is no update until the Bone has been removed or other layers have been assigned. ``` import bpy from bpy.app.handlers import persistent @persistent def depsgraphUpdatePost(scene, depsgraph): for update in depsgraph.updates: print("update.id",update.id) return def register(): bpy.app.handlers.depsgraph_update_post.append(depsgraphUpdatePost) def unregister(): bpy.app.handlers.depsgraph_update_post.remove(depsgraphUpdatePost) if __name__ == "__main__": register() ``` [2022-09-13 16-49-21.mp4](https://archive.blender.org/developer/F13490063/2022-09-13_16-49-21.mp4)
Author

Added subscriber: @drpontchartrain

Added subscriber: @drpontchartrain
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Omar Emara changed title from Depsgraph Update Doesn't Include New Bone Layer Initially to Moving bone to another layer doesn't trigger a depsgraph update 2022-09-14 10:38:01 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2022-09-14 13:06:46 +02:00
Member

This just needs a depsgraph tag in the right place, fix incoming...

This just needs a depsgraph tag in the right place, fix incoming...

This issue was referenced by 3dce2469ee

This issue was referenced by 3dce2469eea5a7c0600136b167c07a137b736ad1

This issue was referenced by 0ecc1d788c

This issue was referenced by 0ecc1d788cb9499bf9d4d8834335b4108bfa1084

This issue was referenced by c350d97a2f

This issue was referenced by c350d97a2f69593569cd4deae73973c66355fa18
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' 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
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#101046
No description provided.