Page MenuHome

Driver on lamp shader node tree refuses to update
Closed, ResolvedPublic

Description

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 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