fix an issue that Value/Curve destroys an editor of Node/Network

This commit is contained in:
falsycat 2022-11-18 12:14:50 +09:00
parent 61a97e6a32
commit 27a28d6c0d

View File

@ -386,8 +386,8 @@ void Curve::UpdateCurveEditorWindow(const ImVec2& size) noexcept {
const auto pad = ImGui::GetStyle().WindowPadding / 2;
ImGui::SetCursorPos(pad);
UpdateCurveEditor(ImGui::GetContentRegionAvail()-pad*2);
ImGui::EndChild();
}
ImGui::EndChild();
}
void Curve::UpdateCurveEditor(const ImVec2& sz) noexcept {
const auto& io = ImGui::GetIO();