File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ find_package(ImGui REQUIRED SourcesMiscCpp)
82
82
CPMAddPackage(
83
83
NAME imnodes
84
84
GITHUB_REPOSITORY Auburn/imnodes
85
- GIT_TAG 26b70c528d48beeb839035f3da71550f8b0adfa7
85
+ GIT_TAG db2ef1192a4ddff32a838094de7127142a731ef0
86
86
GIT_SUBMODULES ".github"
87
87
EXCLUDE_FROM_ALL YES
88
88
OPTIONS
Original file line number Diff line number Diff line change @@ -1336,7 +1336,7 @@ void FastNoiseNodeEditor::DoContextMenu()
1336
1336
ImGui::PushStyleVar ( ImGuiStyleVar_WindowPadding, ImVec2 ( 4 , 4 ) );
1337
1337
if ( distance < 5 .0f && ImGui::BeginPopupContextWindow ( " new_node" , 1 ) )
1338
1338
{
1339
- mContextStartPos = ImGui::GetMousePosOnOpeningCurrentPopup ();
1339
+ mContextStartPos = ImNodes::ConvertToEditorContextSpace ( ImGui::GetMousePosOnOpeningCurrentPopup () );
1340
1340
1341
1341
if ( auto newMetadata = mContextMetadata .front ()->DrawUI () )
1342
1342
{
@@ -1406,7 +1406,7 @@ void FastNoiseNodeEditor::DoContextMenu()
1406
1406
}
1407
1407
if ( ImGui::BeginPopup ( " new_node_drop" , ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings ) )
1408
1408
{
1409
- ImVec2 startPos = ImGui::GetMousePosOnOpeningCurrentPopup ();
1409
+ ImVec2 startPos = ImNodes::ConvertToEditorContextSpace ( ImGui::GetMousePosOnOpeningCurrentPopup () );
1410
1410
1411
1411
auto newMetadata = mContextMetadata .front ()->DrawUI ( []( const FastNoise::Metadata* metadata )
1412
1412
{
You can’t perform that action at this time.
0 commit comments