mirror of
https://github.com/gwm17/Specter.git
synced 2025-02-16 17:38:51 -05:00
Fixed misunderstanding of ImGui::Begin()/End() paradigm. Must always call End() regardless of state of Begin()
This commit is contained in:
parent
afd17b780d
commit
29433be65a
|
@ -68,8 +68,8 @@ namespace Navigator {
|
||||||
ImGui::Text(m_rxnEqn.c_str());
|
ImGui::Text(m_rxnEqn.c_str());
|
||||||
ImGui::Text("X1 Weight: %f", x1_weight.GetValue());
|
ImGui::Text("X1 Weight: %f", x1_weight.GetValue());
|
||||||
ImGui::Text("X2 Weight: %f", x2_weight.GetValue());
|
ImGui::Text("X2 Weight: %f", x2_weight.GetValue());
|
||||||
ImGui::End();
|
|
||||||
}
|
}
|
||||||
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SPSInputLayer::UpdateWeights()
|
void SPSInputLayer::UpdateWeights()
|
||||||
|
@ -137,4 +137,4 @@ namespace Navigator {
|
||||||
x1_weight.SetValue((0.5 - zshift / c_wireDist));
|
x1_weight.SetValue((0.5 - zshift / c_wireDist));
|
||||||
x2_weight.SetValue((1.0 - x1_weight.GetValue()));
|
x2_weight.SetValue((1.0 - x1_weight.GetValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,8 +252,8 @@ namespace Navigator {
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::End();
|
|
||||||
}
|
}
|
||||||
|
ImGui::End();
|
||||||
|
|
||||||
if(ImGui::Begin(ICON_FA_CUT " Cuts"))
|
if(ImGui::Begin(ICON_FA_CUT " Cuts"))
|
||||||
{
|
{
|
||||||
|
@ -267,8 +267,8 @@ namespace Navigator {
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::End();
|
|
||||||
}
|
}
|
||||||
|
ImGui::End();
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,8 +163,8 @@ namespace Navigator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::End();
|
|
||||||
}
|
}
|
||||||
|
ImGui::End();
|
||||||
return m_result;
|
return m_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,13 +109,13 @@ namespace Navigator {
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Instrumentor::Instrumentor() :
|
Instrumentor() :
|
||||||
m_session(nullptr)
|
m_session(nullptr)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Instrumentor::~Instrumentor()
|
~Instrumentor()
|
||||||
{
|
{
|
||||||
EndSession();
|
EndSession();
|
||||||
}
|
}
|
||||||
|
@ -257,4 +257,4 @@ namespace Navigator {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user