def __gather_roughness_factor(blender_material, export_settings):
    roughness_socket = gltf2_blender_get.get_socket(blender_material, 'Roughness')
    if (roughness_socket is None):
        roughness_socket = gltf2_blender_get.get_socket_old(blender_material, 'RoughnessFactor')
    if (isinstance(roughness_socket, bpy.types.NodeSocket) and (not roughness_socket.is_linked)):
        return roughness_socket.default_value
    return None
def __gather_roughness_factor(blender_material, export_settings):
    roughness_socket = gltf2_blender_get.get_socket(blender_material, 'Roughness')
    if (roughness_socket is None):
        roughness_socket = gltf2_blender_get.get_socket_old(blender_material, 'RoughnessFactor')
    if (isinstance(roughness_socket, bpy.types.NodeSocket) and (not roughness_socket.is_linked)):
        return roughness_socket.default_value
    return None