Page MenuHome

object does not disappear from viewport when using drivers to disable visibility
Closed, DuplicatePublic


System Information
Operating system: Windows 10
Graphics card: GTX 1080

Blender Version
Broken: blender-2.80.0-git.4c5e76025d83-windows64

Short description of error

When using a driver to hide an Object, the Object will not disappear from the viewport.

Exact steps for others to reproduce the error

I am going to create a cube with a driver and a "switch" to make the cube disappear when the "switch" is moved more than 1m on the Z-axis

open blender 2.8
Create a cube.
Add a driver to the display icon in the outliner.
Create a second cube that will act as a "switch".
move the second cube out to the side on the x or y axis and make sure that the global z height is 0.
open driver editor.
select the 1st cube and select the "Disable View" driver that we created earlier.
open the "Drivers" tab.
change "Type:" to Z Location.
change the "Expression:" to "var".
Change the Input Variable to the 2nd Cube (Cube.001).
Now if you move the 2nd cube more than 1m upwards on the Z-axis, the 1st cube should disappear. But in 2.8 it doesn't.
The "display" icon in the outliner will grey out, but the object will still stay visible in the viewport.

In 2.79 the object will disappear.

This Bug breaks Rigs that use python scripts to hide objects in the viewport.

2.79 and 2.8 Files included