Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions packages/projects/default-project/assets/prefabs/image.prefab.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
},
"scenes": [
{
"nodes": [
0
]
"nodes": [0]
}
],
"scene": 0,
"nodes": [
{
"name": "New Object",
"name": "Image",
"extensions": {
"EE_uuid": "0db4cf3f-8adb-42eb-8efa-3102182e61fc",
"EE_visible": true,
Expand All @@ -27,10 +25,5 @@
}
}
],
"extensionsUsed": [
"EE_uuid",
"EE_visible",
"EE_image",
"EE_ecs"
]
}
"extensionsUsed": ["EE_uuid", "EE_visible", "EE_image", "EE_ecs"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const HierarchyTreeNode = (props: HierarchyTreeNodeProps) => {
.map((c) => getState(ComponentEditorsState)[c.name]?.iconComponent)
.filter((icon) => !!icon)
: []
const IconComponent = icons.length ? icons[icons.length - 1] : TransformPropertyGroup.iconComponent
const IconComponent = icons.length > 0 ? icons[0] : TransformPropertyGroup.iconComponent
const renaming = data.renamingNode && data.renamingNode.entity === node.entity

return (
Expand Down