We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c596dc1 commit 7b2d3dfCopy full SHA for 7b2d3df
1 file changed
Mods/Editor/Src/Components/Items.cpp
@@ -124,6 +124,18 @@ void Editor::DrawItems(bool p_HasFocus) {
124
125
OnSelectEntity(s_Action->m_Object, true, std::nullopt);
126
}
127
+
128
+ ImGui::BeginDisabled(!s_Item->m_pOwner);
129
130
+ if (ImGui::Button("Select Owner In Entity Tree")) {
131
+ if (!m_CachedEntityTree || !m_CachedEntityTree->Entity) {
132
+ UpdateEntities();
133
+ }
134
135
+ OnSelectEntity(s_Item->m_pOwner, true, std::nullopt);
136
137
138
+ ImGui::EndDisabled();
139
140
141
if (ImGui::Button("Teleport Item To Player")) {
0 commit comments