No need for indentVal outside of scope.

This commit is contained in:
Bartosz Taudul 2018-08-18 14:14:33 +02:00
parent a548bcb470
commit fb876344e3

View File

@ -6747,11 +6747,10 @@ void View::DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx )
ImGui::EndTooltip();
}
float indentVal = 0.f;
if( m_callstackTreeBuzzAnim.Match( idx ) )
{
const auto time = m_callstackTreeBuzzAnim.Time();
indentVal = sin( time * 60.f ) * 10.f * time;
const auto indentVal = sin( time * 60.f ) * 10.f * time;
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
}
else