]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/util.py
Add a Blender operator to export the entire project at once
[libs/gl.git] / blender / io_mspgl / util.py
index ca13875befe31aeae05433d84ebc04ae073b5342..3b2f718bdb4aebf4399870ad6227b4554e78c347 100644 (file)
@@ -68,3 +68,12 @@ def basename(path):
        if path.startswith("//"):
                path = path[2:]
        return os.path.basename(path)
+
+def make_unique(values):
+       seen = set()
+       result = []
+       for i in values:
+               if i not in seen:
+                       result.append(i)
+                       seen.add(i)
+       return result