diff options
author | Martin Poirier <theeth@yahoo.com> | 2012-01-15 23:51:01 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2012-01-15 23:51:01 +0400 |
commit | 1d31ef75966273045338ebc72ebcce5ad63a76b4 (patch) | |
tree | 6abf3136dac199ebbabccfeccd0bd96061bd10b0 /netrender/client.py | |
parent | 9291f167be73a5cd6dc2603d72725d9a02be0da2 (diff) |
netrender
use threading for interprocess communication. Don't stall slave communication when rendering/baking process output blocks. This enables running slow baking and rendering jobs correctly without the slave disconnecting from the master. It also makes slaves much more responsive to cancelling jobs on the master.
add save on job option (default false) to save the current file before sending a rendering blender job.
Diffstat (limited to 'netrender/client.py')
-rw-r--r-- | netrender/client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netrender/client.py b/netrender/client.py index 18a2302f..b5f8c31b 100644 --- a/netrender/client.py +++ b/netrender/client.py @@ -259,10 +259,13 @@ def sendJobBlender(conn, scene, anim = False): job.addFrame(scene.frame_current) filename = bpy.data.filepath - + if not os.path.exists(filename): raise RuntimeError("Current file path not defined\nSave your file before sending a job") + if netsettings.save_before_job: + bpy.ops.wm.save_mainfile(filepath=filename, check_existing=False) + job.addFile(filename) job_name = netsettings.job_name |