Page MenuHome

In quad view, most overlay settings for "Guides" are missing
Closed, ResolvedPublic


System Information
Operating system: Linux-4.15.0-70-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.26

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: rB26bd5ebd42e3
Worked: (optional)

Short description of error
Due to a bug in scripts/startup/bl_ui/, when quad view is enabled, using the "Overlays" pull-down generates an exception on the console and shows a "Guides" section consisting of only the "Grid" checkbox, instead of also showing additional "Grid" and non-grid controls.

Exact steps for others to reproduce the error
From a default scene in object mode, switch on quad view, and access the overlays pull down menu. The following exception is generated:

Traceback (most recent call last):
  File "/scratch/buhr/blender/official_versions/blender-2.81-linux-glibc217-x86_64/2.81/scripts/startup/bl_ui/", line 5551, in draw = grid_active
TypeError: bpy_struct: item.attr = val: expected True/False or 0/1, not bpy_prop_collection

and in the "Guides" section of the overlays menu, only the "Grid" checkbox is available when we would expect "Grid", "Floor", "Axes", etc.

The fix is straightforward -- in, the grid_active variable needs to be cast to a bool.

Event Timeline

Kevin Buhr (buhr) renamed this task from In quad view, most overlay settings for grid are missing to In quad view, most overlay settings for "Guides" are missing.Dec 1 2019, 10:47 PM
Kevin Buhr (buhr) created this task.
Robert Guetzkow (rjg) lowered the priority of this task from 90 to Low.Dec 1 2019, 11:24 PM