Page MenuHome

Drivers with the object.dimension variable are not updated
Closed, ResolvedPublicBUG

Description

Blender Version
Broken: version: 2.83
Worked: 2.79b

Short description of error
The bounding box(dimensions) updating with delay in drivers.

Exact steps for others to reproduce the error

  1. Open:
  2. Select the box.
  3. Change the x dimension of the box (Note that the cylinder is updated).
  4. Select the cylinder.
  5. Go to the drivers.
  6. Remove the dummy variable.
  7. Change the x dimension of the box (Note that the cylinder is not updated).

Also, I create a topic on blenderarist.com with ideas for better driver workflow. Please check them.
Drivers update -topic

Event Timeline

Vasil (FeralMan) updated the task description. (Show Details)
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.EditedJan 22 2020, 1:23 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I can confirm.

The file has a dependency cycle with the x dimension of the cylinder. (it is not related to the bug but would be nice to avoid it):

Dependency cycle detected:
  OBCylinder/Parameters Component/DRIVER(modifiers["Array"].constant_offset_displace) depends on
  OBCylinder/Geometry Component/GEOMETRY_EVAL() via 'RNA Target -> Driver'
  OBCylinder/Geometry Component/GEOMETRY_EVAL_INIT() via 'Object Geometry UberEval'
  OBCylinder/Parameters Component/DRIVER(modifiers["Array"].constant_offset_displace) via 'Driver -> Driven Property'
Detected 1 dependency cycles

The problem is not seen in blender 2.79
It is interesting to note that if you add a location variable even without adding to the expression the problem seems to be solved.

Germano Cavalcante (mano-wii) renamed this task from Bounding box delay to Drivers with the object.dimension variable are not updated.Jan 22 2020, 1:26 PM
Germano Cavalcante (mano-wii) updated the task description. (Show Details)

Updated the description and removed the dependency cycle in the file.