def __gather_metallic_factor(blender_material, export_settings):
    metallic_socket = gltf2_blender_get.get_socket(blender_material, 'Metallic')
    if (metallic_socket is None):
        metallic_socket = gltf2_blender_get.get_socket_old(blender_material, 'MetallicFactor')
    if (isinstance(metallic_socket, bpy.types.NodeSocket) and (not metallic_socket.is_linked)):
        return metallic_socket.default_value
    return None
def __gather_metallic_factor(blender_material, export_settings):
    metallic_socket = gltf2_blender_get.get_socket(blender_material, 'Metallic')
    if (metallic_socket is None):
        metallic_socket = gltf2_blender_get.get_socket_old(blender_material, 'MetallicFactor')
    if (isinstance(metallic_socket, bpy.types.NodeSocket) and (not metallic_socket.is_linked)):
        return metallic_socket.default_value
    return None