Skip to content

Commit 80add2e

Browse files
committed
fix animation on tree nodes
1 parent 8733800 commit 80add2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityInspector/library/imgui/imgui_widgets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6982,7 +6982,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
69826982
const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0;
69836983
bool is_open = TreeNodeUpdateNextOpen(storage_id, flags);
69846984
bool actual_open = is_open;
6985-
bool can_animate = !is_leaf && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen);
6985+
bool can_animate = !is_leaf;
69866986
float anim_progress = actual_open ? 1.0f : 0.0f;
69876987

69886988
if (can_animate)

0 commit comments

Comments
 (0)