mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 08:14:34 +00:00
No need for indentVal outside of scope.
This commit is contained in:
parent
a548bcb470
commit
fb876344e3
@ -6747,11 +6747,10 @@ void View::DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx )
|
|||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
float indentVal = 0.f;
|
|
||||||
if( m_callstackTreeBuzzAnim.Match( idx ) )
|
if( m_callstackTreeBuzzAnim.Match( idx ) )
|
||||||
{
|
{
|
||||||
const auto time = m_callstackTreeBuzzAnim.Time();
|
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 );
|
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user