feat: move rendering to an imgui window
This commit is contained in:
@@ -338,10 +338,13 @@ void SceneInspector::DrawNode(Scene& scene, GameObject& object, ObjectId& select
|
||||
|
||||
DrawNodeDragDrop(object);
|
||||
|
||||
// Leaf nodes push no ID, without this every sibling shares one popup and draws it again
|
||||
ImGui::PushID(reinterpret_cast<void*>(static_cast<std::uintptr_t>(object.GetId())));
|
||||
if (ImGui::BeginPopupContextItem("ObjectMenu")) {
|
||||
DrawObjectMenu(scene, &object, selectedObjectId);
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
ImGui::PopID();
|
||||
|
||||
if (renaming) {
|
||||
ImGui::SameLine();
|
||||
|
||||
Reference in New Issue
Block a user