Add visibility and delete buttons to node sections in the Properties panel

This commit is contained in:
Keavon Chambers
2024-05-07 02:53:30 -07:00
parent 1ce3d59e0f
commit 07fd2c2782
10 changed files with 139 additions and 68 deletions
+3 -3
View File
@@ -556,8 +556,8 @@
return selected.includes(node) || intersetNodeAABB(boxSelect, nodeIndex);
}
function toggleLayerVisibility(id: bigint) {
editor.handle.toggleLayerVisibility(id);
function toggleNodeVisibility(id: bigint) {
editor.handle.toggleNodeVisibility(id);
}
function toggleLayerDisplay(displayAsLayer: boolean) {
@@ -956,7 +956,7 @@
</div>
<IconButton
class={"visibility"}
action={(e) => (toggleLayerVisibility(node.id), e?.stopPropagation())}
action={(e) => (toggleNodeVisibility(node.id), e?.stopPropagation())}
size={24}
icon={node.visible ? "EyeVisible" : "EyeHidden"}
tooltip={node.visible ? "Visible" : "Hidden"}