File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1048,18 +1048,19 @@ void FastNoiseNodeEditor::DoNodes()
1048
1048
}
1049
1049
1050
1050
ImNodes::EndNodeTitleBar ();
1051
+ ImGuiID popupId = ImGui::GetItemID ();
1051
1052
1052
1053
if ( ImGui::IsMouseReleased ( ImGuiMouseButton_Right ) && ImGui::IsItemHovered ( ImGuiHoveredFlags_AllowWhenBlockedByPopup ) )
1053
1054
{
1054
1055
ImGui::SetCurrentContext ( mMainContext );
1055
- ImGui::OpenPopup ( " node_title " );
1056
+ ImGui::OpenPopup ( popupId );
1056
1057
}
1057
1058
1058
1059
ImGui::SetCurrentContext ( mMainContext );
1059
1060
// Right click node title to change node type
1060
1061
ImGui::PushStyleVar ( ImGuiStyleVar_WindowPadding, ImVec2 ( 4 , 4 ) );
1061
1062
1062
- if ( ImGui::BeginPopup ( " node_title " ) )
1063
+ if ( ImGui::BeginPopupEx ( popupId, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings ) )
1063
1064
{
1064
1065
if ( ImGui::MenuItem ( " Copy Encoded Node Tree" ) )
1065
1066
{
You can’t perform that action at this time.
0 commit comments