Object drivers driven by outliner visibility not updating automatically #78071

Open
opened 2020-06-20 17:45:24 +02:00 by Mauro Cardinaels · 28 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1060 6gb

Blender Version
Broken: 2.90.0-874af5301cdf (June 20)

Short description of error
Drivers on object modifiers that are driven by outliner settings (Hide in viewport, hide in render, etc.) won't work when toggling said outliner settings and has to be forced manually with Update Dependencies.

Exact steps for others to reproduce the error

  • Have 2 cubes in a scene, Cube 1 and Cube 2.
  • Add a modifier on Cube 2 (In my case, a mask, in which Cube 2 is subdivided twice and has a vertex group)
  • Add a driver on the Realtime button on said mask modifier.
  • Have it be driven by Cube 1's "Disable in Viewports" button with the following settings:

Single Property
Property: Object Cube 1
Path: hide_viewport

  1. Disabling Cube_1 from the viewport in the Outliner will not enable the driver on Cube_2's mask modifier.
  2. Updating Dependencies in the driver editor will correct this.

After updating dependency, enabling Cube_1 will disable the mask in the viewport, although the mask is still enabled in the modifier tab. Clicking once in the viewport will correct this.

Example .Blend File
BrokenDriverTest.blend

**System Information** Operating system: Windows 10 Graphics card: GTX 1060 6gb **Blender Version** Broken: 2.90.0-874af5301cdf (June 20) **Short description of error** Drivers on object modifiers that are driven by outliner settings (Hide in viewport, hide in render, etc.) won't work when toggling said outliner settings and has to be forced manually with Update Dependencies. **Exact steps for others to reproduce the error** - Have 2 cubes in a scene, Cube 1 and Cube 2. - Add a modifier on Cube 2 (In my case, a mask, in which Cube 2 is subdivided twice and has a vertex group) - Add a driver on the Realtime button on said mask modifier. - Have it be driven by Cube 1's "Disable in Viewports" button with the following settings: Single Property Property: Object Cube 1 Path: hide_viewport 6. Disabling Cube_1 from the viewport in the Outliner will not enable the driver on Cube_2's mask modifier. 7. Updating Dependencies in the driver editor will correct this. After updating dependency, enabling Cube_1 will disable the mask in the viewport, although the mask is still enabled in the modifier tab. Clicking once in the viewport will correct this. Example .Blend File [BrokenDriverTest.blend](https://archive.blender.org/developer/F8633901/BrokenDriverTest.blend)

Added subscriber: @SpaceHamster

Added subscriber: @SpaceHamster

#97016 was marked as duplicate of this issue

#97016 was marked as duplicate of this issue

#91774 was marked as duplicate of this issue

#91774 was marked as duplicate of this issue

#86312 was marked as duplicate of this issue

#86312 was marked as duplicate of this issue

Added subscriber: @iss

Added subscriber: @iss

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

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

This may be already reported, but I can't find any open issue like this

This may be already reported, but I can't find any open issue like this
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I can reproduce it, but I'm not sure why this is in the Nodes & Physics module.

I can reproduce it, but I'm not sure why this is in the Nodes & Physics module.

In #78071#964051, @JacquesLucke wrote:
I can reproduce it, but I'm not sure why this is in the Nodes & Physics module.

Sounds off to me as well, but I haven't questioned this. All reports should have module assigned, and Dependency Graph is listed under Nodes & Physics module in https://wiki.blender.org/wiki/Modules

> In #78071#964051, @JacquesLucke wrote: > I can reproduce it, but I'm not sure why this is in the Nodes & Physics module. Sounds off to me as well, but I haven't questioned this. All reports should have module assigned, and Dependency Graph is listed under Nodes & Physics module in https://wiki.blender.org/wiki/Modules
Member

Ah I see..

Ah I see..

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sybren A. Stüvel self-assigned this 2020-06-25 11:53:03 +02:00

Toggling the hide_viewport property on Cube_1 causes this to be logged on the terminal:

add_relation(RNA Target -> Driver) - Could not find op_from (RnaPathKey(id: OBCube_1, prop: 'hide_viewport'))
add_relation(RNA Target -> Driver) - Failed, but op_to (OperationKey(type: PARAMETERS, component name: '', operation code: DRIVER, 'modifiers["Mask"].show_viewport')) was ok
Toggling the hide_viewport property on Cube_1 causes this to be logged on the terminal: ``` add_relation(RNA Target -> Driver) - Could not find op_from (RnaPathKey(id: OBCube_1, prop: 'hide_viewport')) add_relation(RNA Target -> Driver) - Failed, but op_to (OperationKey(type: PARAMETERS, component name: '', operation code: DRIVER, 'modifiers["Mask"].show_viewport')) was ok ```

This issue was referenced by baa0da3e69

This issue was referenced by baa0da3e69a1225cd18c075be5563c7d811b5347

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

This issue was referenced by d0693c160a

This issue was referenced by d0693c160ae49417d0afd63c66caa4c58e2cec9b

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'

My fix caused another issue, so I'm reopening this task.

My fix caused another issue, so I'm reopening this task.

This issue was referenced by c7694185c9

This issue was referenced by c7694185c92aa44c90fa43e58e88742e085183d9

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Added subscriber: @Dreamrider

Added subscriber: @Dreamrider

@dr.sybren
Pinging to say this happened to me today in the latest release (2.92.0)
Have there been any developments related to this issue?

@dr.sybren Pinging to say this happened to me today in the latest release (2.92.0) Have there been any developments related to this issue?

Given that this issue was closed ¾ year ago, what you're seeing could be something different. Please file a new bug report, including an as-simple-as-possible example file and steps to reproduce.

Given that this issue was closed ¾ year ago, what you're seeing could be something different. Please file a new bug report, including an as-simple-as-possible example file and steps to reproduce.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'
Sybren A. Stüvel was unassigned by Ankit Meel 2021-06-06 21:04:54 +02:00
Member

Screen Recording: F10160128
I can redo the bug in the top level description, as well as the one reported by @Dreamrider in #86312
So reopening.

797f6e1483
macOS 10.14

Screen Recording: [F10160128](https://archive.blender.org/developer/F10160128/Screen_Recording_2021-06-07_at_00.29.13.mov) I can redo the bug in the top level description, as well as the one reported by @Dreamrider in #86312 So reopening. 797f6e1483a12fe4797e7cf9d435c042ddda40c4 macOS 10.14

Added subscriber: @billyand

Added subscriber: @billyand
Member

Added subscriber: @AdrianPreston

Added subscriber: @AdrianPreston
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:45 +01:00
Philipp Oeser added the
Interest
Core
label 2023-02-10 11:09:29 +01: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
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
8 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#78071
No description provided.