netrender: reset server address on client when server is offline (on file load) as well as clear local caches (for slaves and jobs)

This commit is contained in:
2010-01-04 21:05:52 +00:00
parent bed3c5254f
commit 2034a77a45
3 changed files with 85 additions and 35 deletions

View File

@@ -96,15 +96,18 @@ def clientScan(report = None):
return ("", 8000) # return default values
def clientConnection(address, port, report = None):
def clientConnection(address, port, report = None, scan = True):
if address == "[default]":
# calling operator from python is fucked, scene isn't in context
# if bpy:
# bpy.ops.render.netclientscan()
# else:
address, port = clientScan()
if address == "":
return None
if not scan:
return None
address, port = clientScan()
if address == "":
return None
try:
conn = http.client.HTTPConnection(address, port)