diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-02-26 05:37:31 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-02-26 05:37:31 +0300 |
commit | 59e2fdbf31380fc8bf8c0543344233bd2bee7133 (patch) | |
tree | 0374b2cb9dec3a7b3b343d7eba9aec6f30a5fb84 /release | |
parent | de574490d23d8c8cf8d3195587a3e3d7b0ba574b (diff) |
Netrender: check if library and image files exist before adding as dependency.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/io/netrender/client.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/io/netrender/client.py b/release/scripts/io/netrender/client.py index 8ca573fa686..835f88b0771 100644 --- a/release/scripts/io/netrender/client.py +++ b/release/scripts/io/netrender/client.py @@ -113,14 +113,18 @@ def clientSendJob(conn, scene, anim = False): # LIBRARIES ########################### for lib in bpy.data.libraries: - job.addFile(bpy.utils.expandpath(lib.filename)) + file_path = bpy.utils.expandpath(lib.filename) + if os.path.exists(file_path): + job.addFile(file_path) ########################### # IMAGES ########################### for image in bpy.data.images: if image.source == "FILE" and not image.packed_file: - job.addFile(bpy.utils.expandpath(image.filename)) + file_path = bpy.utils.expandpath(image.filename) + if os.path.exists(file_path): + job.addFile(file_path) ########################### # FLUID + POINT CACHE @@ -178,7 +182,6 @@ def clientSendJob(conn, scene, anim = False): def requestResult(conn, job_id, frame): conn.request("GET", renderURL(job_id, frame)) -@rnaType class NetworkRenderEngine(bpy.types.RenderEngine): bl_idname = 'NET_RENDER' bl_label = "Network Render" |