8bbf823716
Take the node tree as an argument directly instead of retrieving it from the editor struct. Then use the utility function in two more places.