def convert_to_panda_filepath(filepath):
    """ Converts a blender filepath to a panda filepath """
    filepath = filepath.replace("\\", "/")
    if ":/" in filepath:
        idx = filepath.index(":/")
        filepath = "/" + filepath[0:idx].lower() + "/" + filepath[idx+2:]

    # Blender indicates relative paths with a double slash
    if filepath.startswith("//"):
        filepath = "./" + filepath[2:]

    return filepath