netrender
Bugfix for job cancellation (reported by Carsten in email) Ended up recoding part of the communication pipe (use json more consistently) Fix bpy data modifications where it shouldn't happen (as a bonus, thumbnailing is now done out of process)
This commit is contained in:
@@ -62,12 +62,9 @@ class RENDER_OT_netslave_bake(bpy.types.Operator):
|
||||
modifier.point_cache.use_disk_cache = True
|
||||
modifier.point_cache.use_external = False
|
||||
elif modifier.type == "SMOKE" and modifier.smoke_type == "TYPE_DOMAIN":
|
||||
modifier.domain_settings.point_cache_low.use_step = 1
|
||||
modifier.domain_settings.point_cache_low.use_disk_cache = True
|
||||
modifier.domain_settings.point_cache_low.use_external = False
|
||||
modifier.domain_settings.point_cache_high.use_step = 1
|
||||
modifier.domain_settings.point_cache_high.use_disk_cache = True
|
||||
modifier.domain_settings.point_cache_high.use_external = False
|
||||
modifier.domain_settings.point_cache.use_step = 1
|
||||
modifier.domain_settings.point_cache.use_disk_cache = True
|
||||
modifier.domain_settings.point_cache.use_external = False
|
||||
|
||||
# particles modifier are stupid and don't contain data
|
||||
# we have to go through the object property
|
||||
@@ -355,7 +352,7 @@ class RENDER_OT_netclientcancel(bpy.types.Operator):
|
||||
if conn:
|
||||
job = netrender.jobs[netsettings.active_job_index]
|
||||
|
||||
conn.request("POST", cancelURL(job.id))
|
||||
conn.request("POST", cancelURL(job.id), json.dumps({'clear':False}))
|
||||
|
||||
response = conn.getresponse()
|
||||
response.read()
|
||||
@@ -382,7 +379,7 @@ class RENDER_OT_netclientcancelall(bpy.types.Operator):
|
||||
conn = clientConnection(netsettings.server_address, netsettings.server_port, self.report)
|
||||
|
||||
if conn:
|
||||
conn.request("POST", "/clear")
|
||||
conn.request("POST", "/clear", json.dumps({'clear':False}))
|
||||
|
||||
response = conn.getresponse()
|
||||
response.read()
|
||||
|
||||
Reference in New Issue
Block a user