Without this check, the dropdowns in Glass BSDF and Metallic BSDF show up twice because layouts added with `add_default_layout` are drawn once at the start of `ui_node_draw_node` and a second time in the loop. Pull Request: https://projects.blender.org/blender/blender/pulls/147329