Skip to content

Commit 0b33175

Browse files
committed
Node graph minimap
1 parent 6cf0780 commit 0b33175

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NoiseTool/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ CPMAddPackage(
6161
CPMAddPackage(
6262
NAME imnodes
6363
GITHUB_REPOSITORY Auburn/imnodes
64-
GIT_TAG c986af0bbaf45f2adadabca42f48e972e8339dd5
64+
GIT_TAG a295b4af69045645d657363d5d135e2d8a3785f6
6565
)
6666

6767
# Use modules from magnum-integration since it has everything we need

NoiseTool/FastNoiseNodeEditor.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ FastNoiseNodeEditor::FastNoiseNodeEditor() :
470470
ImGui::StyleColorsDark();
471471
ImNodes::StyleColorsDark();
472472

473+
ImNodes::GetStyle().MiniMapPadding = ImVec2( 8, 8 );
474+
473475
#ifdef _DEBUG
474476
mNodeBenchmarkMax = 1;
475477
#endif
@@ -602,6 +604,8 @@ void FastNoiseNodeEditor::Draw( const Matrix4& transformation, const Matrix4& pr
602604

603605
DoNodes();
604606

607+
ImNodes::MiniMap( 0.2f, ImNodesMiniMapLocation_BottomLeft );
608+
605609
ImNodes::EndNodeEditor();
606610

607611
CheckLinks();

0 commit comments

Comments
 (0)