Adding driver with python on inactive viewlayer doesn't catch dependency #106943

Closed
opened 2023-04-14 13:05:57 +02:00 by Simon Thommes · 1 comments

System Information
Operating system: Linux-5.17.15-76051715-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.48.07

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-13 13:52, hash: 5ba35b3d1596
Worked: (newest version of Blender that worked as expected)

Short description of error
A driver that is added via python to a property of an inactive view layer does not add the necessary dependencies to the depsgraph

Exact steps for others to reproduce the error
With attached file:

  • Run the short script
  • Switch to the Other viewlayer
  • adjust the prop custom property on the cube object
    -- the prop custom property on the view layer should change

Note: run the script with the Other view layer active and it works fine

Another note: update_tag() and depsgraph.update() don't seem to help with this

**System Information** Operating system: Linux-5.17.15-76051715-generic-x86_64-with-glibc2.35 64 Bits, X11 UI Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.48.07 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-13 13:52, hash: `5ba35b3d1596` Worked: (newest version of Blender that worked as expected) **Short description of error** A driver that is added via python to a property of an inactive view layer does not add the necessary dependencies to the depsgraph **Exact steps for others to reproduce the error** With attached file: - Run the short script - Switch to the `Other` viewlayer - adjust the `prop` custom property on the cube object -- the `prop` custom property on the view layer should change Note: run the script with the `Other` view layer active and it works fine Another note: `update_tag()` and `depsgraph.update()` don't seem to help with this
Simon Thommes added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-14 13:05:58 +02:00
Poster
Collaborator

I already mentioned this to @dr.sybren , would be great if you could take a look soon! Let me know if you need more information 👍

I already mentioned this to @dr.sybren , would be great if you could take a look soon! Let me know if you need more information 👍
Sybren A. Stüvel added this to the Core project 2023-04-14 14:20:06 +02:00
Sybren A. Stüvel modified the project from Core to Animation & Rigging 2023-04-14 14:20:12 +02:00
Sybren A. Stüvel self-assigned this 2023-04-14 14:20:18 +02:00
Sybren A. Stüvel added
Module
Animation & Rigging
and removed
Interest
Animation & Rigging
labels 2023-04-14 14:20:27 +02:00
Germano Cavalcante added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-04-14 19:13:14 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-04-17 13:01:23 +02:00
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
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 Assignees
1 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#106943
There is no content yet.