AcTools.Utils.Kn5Fixer.FixLrHrNodes_HasChild C# (CSharp) Method

FixLrHrNodes_HasChild() private static method

private static FixLrHrNodes_HasChild ( Kn5Node node, Kn5Node child ) : bool
node AcTools.Kn5File.Kn5Node
child AcTools.Kn5File.Kn5Node
return bool
        private static bool FixLrHrNodes_HasChild(Kn5Node node, Kn5Node child) {
            if (node.NodeClass != Kn5NodeClass.Base) return false;
            return node.Children.Contains(child) || node.Children.Any(subNode => FixLrHrNodes_HasChild(subNode, child));
        }