fixup! Unique ids for entity nodes in the editor to prevent weird behaviour when multiple entities have the same name
This commit is contained in:
@@ -225,8 +225,10 @@ bool EditorGUI::drawEntityNode(EntityWrapper entity)
|
|||||||
entityChangeParent(m_CurrentlyDragging, entity);
|
entityChangeParent(m_CurrentlyDragging, entity);
|
||||||
m_CurrentlyDragging = EntityWrapper::Invalid;
|
m_CurrentlyDragging = EntityWrapper::Invalid;
|
||||||
}
|
}
|
||||||
|
ImGui::PopID();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
ImGui::PopID();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user