File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
# CMakeList.txt : CMake project for FastNoise
2
2
cmake_minimum_required (VERSION 3.7.1)
3
3
4
- project (FastNoise2 VERSION 0.8.0 )
4
+ project (FastNoise2 VERSION 0.8.1 )
5
5
set (CMAKE_CXX_STANDARD 17)
6
6
7
7
option (FASTNOISE2_NOISETOOL "Build Noise Tool" ON )
Original file line number Diff line number Diff line change @@ -394,10 +394,11 @@ void FastNoiseNodeEditor::CheckLinks()
394
394
void FastNoiseNodeEditor::UpdateSelected ()
395
395
{
396
396
std::vector<int > linksToDelete;
397
+ int selectedLinkCount = imnodes::NumSelectedLinks ();
397
398
398
- if ( int selectedCount = imnodes::NumSelectedLinks () && ImGui::IsKeyPressed ( ImGui::GetKeyIndex ( ImGuiKey_Delete ), false ) )
399
+ if ( selectedLinkCount && ImGui::IsKeyPressed ( ImGui::GetKeyIndex ( ImGuiKey_Delete ), false ) )
399
400
{
400
- linksToDelete.resize ( selectedCount );
401
+ linksToDelete.resize ( selectedLinkCount );
401
402
imnodes::GetSelectedLinks ( linksToDelete.data () );
402
403
}
403
404
@@ -432,9 +433,11 @@ void FastNoiseNodeEditor::UpdateSelected()
432
433
}
433
434
}
434
435
435
- if ( int selectedCount = imnodes::NumSelectedNodes () && ImGui::IsKeyPressed ( ImGui::GetKeyIndex ( ImGuiKey_Delete ), false ) )
436
+ int selectedNodeCount = imnodes::NumSelectedNodes ();
437
+
438
+ if ( selectedNodeCount && ImGui::IsKeyPressed ( ImGui::GetKeyIndex ( ImGuiKey_Delete ), false ) )
436
439
{
437
- std::vector<int > selected ( selectedCount );
440
+ std::vector<int > selected ( selectedNodeCount );
438
441
439
442
imnodes::GetSelectedNodes ( selected.data () );
440
443
You can’t perform that action at this time.
0 commit comments