Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'netrender/utils.py')
-rw-r--r--netrender/utils.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/netrender/utils.py b/netrender/utils.py
index 5b8e1995..95513219 100644
--- a/netrender/utils.py
+++ b/netrender/utils.py
@@ -230,7 +230,18 @@ def hashData(data):
m = hashlib.md5()
m.update(data)
return m.hexdigest()
-
+
+def cacheName(ob, point_cache):
+ name = point_cache.name
+ if name == "":
+ name = "".join(["%02X" % ord(c) for c in ob.name])
+
+ return name
+
+def cachePath(file_path):
+ path, name = os.path.split(file_path)
+ root, ext = os.path.splitext(name)
+ return path + os.sep + "blendcache_" + root # need an API call for that
def prefixPath(prefix_directory, file_path, prefix_path, force = False):
if (os.path.isabs(file_path) or