Driver on lamp shader node tree refuses to update #52932

Closed
opened 2017-09-28 10:08:26 +02:00 by Sybren A. Stüvel · 4 comments

System Information
Kubuntu Linux 16.10

Blender Version
Broken: 2.79 release and 0ae1a1ed48

Short description of error
Changing ID property values doesn't update driver values.

Exact steps for others to reproduce the error

  1. Open driving_light_intensity2.blend with blender --enable-new-depsgraph
  2. Change the top viewport to "Rendered" mode so that you can see the light being rendered.
  3. Note the driver result value (5000.0) and the value of the turn_on_lights driver variable (1.0)
  4. In the Scene's Custom Properties panel, change the turn_on_light property from 0 to 1.
  5. Note how the light is still on, and that the driver result value and turn_on_lights driver variable haven't changed.
  6. Press Update Dependencies. This doesn't seem to do anything.
  7. Click on the driver's Python expression, then press Enter. This re-evaluates the entire thing, and actually updates all the values.

When running with --debug-depsgraph, the terminal shows:

Read blend: /home/sybren/driving_light_intensity1.blend
add_relation([RNA Target -> Driver]) - Could not find op_from (RnaPathKey(id: OBSpot, prop: max_strength'))
add_relation([RNA Target -> Driver]) - Failed, but op_to (OperationKey(t: 3, cn: '', c: DRIVER, n: 'nodes["Emission"].inputs[1].default_value')) was ok
add_relation([RNA Target -> Driver]) - Could not find op_from (RnaPathKey(id: SCScene, prop: turn_on_light'))
add_relation([RNA Target -> Driver]) - Failed, but op_to (OperationKey(t: 3, cn: '', c: DRIVER, n: 'nodes["Emission"].inputs[1].default_value')) was ok
Update flushed to 2 objects
deg_evaluate_on_refresh: layers:1, graph->layers:1
BKE_mesh_eval_geometry on MEPlane
BKE_object_eval_local_transform on OBPlane
BKE_animsys_eval_driver on NTShader Nodetree (nodes["Emission"].inputs[1].default_value[0])
BKE_object_eval_uber_data on OBPlane
recalcdata Plane
BKE_object_eval_local_transform on OBSpot
BKE_object_eval_done on OBPlane
BKE_object_eval_done on OBSpot
**System Information** Kubuntu Linux 16.10 **Blender Version** Broken: 2.79 release and 0ae1a1ed488634 **Short description of error** Changing ID property values doesn't update driver values. **Exact steps for others to reproduce the error** 1. Open [driving_light_intensity2.blend](https://archive.blender.org/developer/F898807/driving_light_intensity2.blend) with `blender --enable-new-depsgraph` 2. Change the top viewport to "Rendered" mode so that you can see the light being rendered. 3. Note the driver result value (5000.0) and the value of the `turn_on_lights` driver variable (1.0) 4. In the Scene's Custom Properties panel, change the `turn_on_light` property from 0 to 1. 5. Note how the light is still on, and that the driver result value and `turn_on_lights` driver variable haven't changed. 6. Press Update Dependencies. This doesn't seem to do anything. 7. Click on the driver's Python expression, then press Enter. This re-evaluates the entire thing, and actually updates all the values. When running with `--debug-depsgraph`, the terminal shows: ``` Read blend: /home/sybren/driving_light_intensity1.blend add_relation([RNA Target -> Driver]) - Could not find op_from (RnaPathKey(id: OBSpot, prop: max_strength')) add_relation([RNA Target -> Driver]) - Failed, but op_to (OperationKey(t: 3, cn: '', c: DRIVER, n: 'nodes["Emission"].inputs[1].default_value')) was ok add_relation([RNA Target -> Driver]) - Could not find op_from (RnaPathKey(id: SCScene, prop: turn_on_light')) add_relation([RNA Target -> Driver]) - Failed, but op_to (OperationKey(t: 3, cn: '', c: DRIVER, n: 'nodes["Emission"].inputs[1].default_value')) was ok Update flushed to 2 objects deg_evaluate_on_refresh: layers:1, graph->layers:1 BKE_mesh_eval_geometry on MEPlane BKE_object_eval_local_transform on OBPlane BKE_animsys_eval_driver on NTShader Nodetree (nodes["Emission"].inputs[1].default_value[0]) BKE_object_eval_uber_data on OBPlane recalcdata Plane BKE_object_eval_local_transform on OBSpot BKE_object_eval_done on OBPlane BKE_object_eval_done on OBSpot ```
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sergey Sharybin self-assigned this 2017-09-28 11:14:04 +02:00

This issue was referenced by 3801f76b7b

This issue was referenced by 3801f76b7baf48c608741aba84f6c51e418614dc

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 System
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
Asset Browser Project
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#52932
No description provided.