public float GetNodeHeight(AnimationWindowHierarchyNode node)
        {
            if (node is AnimationWindowHierarchyAddButtonNode)
            {
                return(40f);
            }
            AnimationWindowHierarchyState animationWindowHierarchyState = this.m_TreeView.state as AnimationWindowHierarchyState;

            return((!animationWindowHierarchyState.getTallMode(node)) ? 16f : 32f);
        }
 private void DoFoldout(AnimationWindowHierarchyNode node, Rect rect, float indent)
 {
     if (this.m_TreeView.data.IsExpandable(node))
     {
         Rect position = rect;
         position.x     = indent;
         position.width = this.k_FoldoutWidth;
         EditorGUI.BeginChangeCheck();
         bool flag = GUI.Toggle(position, this.m_TreeView.data.IsExpanded(node), GUIContent.none, TreeViewGUI.s_Styles.foldout);
         if (EditorGUI.EndChangeCheck())
         {
             if (Event.current.alt)
             {
                 this.m_TreeView.data.SetExpandedWithChildren(node, flag);
             }
             else
             {
                 this.m_TreeView.data.SetExpanded(node, flag);
             }
             if (flag)
             {
                 this.m_TreeView.UserExpandedNode(node);
             }
         }
     }
     else
     {
         AnimationWindowHierarchyPropertyNode animationWindowHierarchyPropertyNode = node as AnimationWindowHierarchyPropertyNode;
         AnimationWindowHierarchyState        animationWindowHierarchyState        = this.m_TreeView.state as AnimationWindowHierarchyState;
         if (animationWindowHierarchyPropertyNode != null && animationWindowHierarchyPropertyNode.isPptrNode)
         {
             Rect position2 = rect;
             position2.x     = indent;
             position2.width = this.k_FoldoutWidth;
             EditorGUI.BeginChangeCheck();
             bool flag2 = animationWindowHierarchyState.getTallMode(animationWindowHierarchyPropertyNode);
             flag2 = GUI.Toggle(position2, flag2, GUIContent.none, TreeViewGUI.s_Styles.foldout);
             if (EditorGUI.EndChangeCheck())
             {
                 animationWindowHierarchyState.setTallMode(animationWindowHierarchyPropertyNode, flag2);
             }
         }
     }
 }