Not all view layers are enabled on first run.
View layer toggles now respect DefaultVisibleLayers.
This commit is contained in:
parent
ef5fa310ab
commit
4c8b548e74
@ -816,7 +816,7 @@ class LayerToggleGroup(QtCore.QObject):
|
||||
self.actionGroup.setExclusive(False)
|
||||
self.options = {}
|
||||
for layer in Layer.AllLayers:
|
||||
option = LayerToggleOptions.getOption("%s_visible" % layer, bool, True)
|
||||
option = LayerToggleOptions.getOption("%s_visible" % layer, bool, layer in Layer.DefaultVisibleLayers)
|
||||
self.options[layer] = option
|
||||
|
||||
action = QtGui.QAction(layer, self)
|
||||
|
Reference in New Issue
Block a user