Driver property does not update viewport
Open, ConfirmedPublic

Description

Blender 2.8 Windows 64 bits version 30/08/2018 20:49

If one objet visibility option is changed using a driver, the visibility only changes after save and reload.

To reproduce:

The attached file has 2 objects, a Cube and a Suzanne monkey. There is a driver attached to suzanne to hide/show and the driver is handled using a custom prop of Cube. I know this is not a common use, but I tried to make a file as simple as possible to reproduce the bug.

  1. Open attached file
  2. Select the cube and in properties change "hide" property value to 1.
  3. Look at the outliner and verify hide property change in Suzanne.
  4. In viewport the Suzanne object still remain visible.
  5. Save and reload, the property now works.

I have tested the same driver hidden a collection and the problem is the same. Tested also in 2.79b and the drive hide/show suzanne without problems.

Details

Type
Bug
Bastien Montagne (mont29) triaged this task as Confirmed priority.

Seems to be an update issue, clicking on the show/hide 'eye' icon, or on the render 'camera' one in the outliner fixes to visibility too, but clicking again on the viewport 'grid' one exhibits again the problem. As if driver eval was not updating things properly. not suer what exactly is the problem here, would suspect again some COW/depsgraph thingy, @Sergey Sharybin (sergey)?

@Philipp Oeser (lichtwerk) I think this could be related to T56636

Could you take a look?

This really is an issue for @Sergey Sharybin (sergey) to look at, it's a limitation regarding animation visibility in the dependency graph. We may not even support it in the first 2.80 release since it is quite complex to solve.