We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea87491 commit 78f729fCopy full SHA for 78f729f
src/ui/windows/tools.lua
@@ -434,6 +434,10 @@ local function updateLayerList(toolName, tool)
434
435
else
436
toolWindow.layerPanel:removeSelf()
437
+
438
+ -- Always update material list if the layer list is invisible
439
+ -- Layer item callback will never happen and the material list will be stuck
440
+ toolWindow.materialList:updateItems(getMaterialItems("fake_layer_name"))
441
end
442
443
toolWindow.layerPanelVisible = newVisible
@@ -553,7 +557,7 @@ local function toolCallback(list, toolName)
553
557
toolWindow.eventStates.material = nil
554
558
555
559
toolHandler.selectTool(toolName)
556
- updateLayerList(toolName, tool)
560
+ updateLayerList(toolName, toolHandler.tools[toolName])
561
562
563
0 commit comments