forked from bartvdbraak/blender
Netrender: Fix for API changes (it would be nice if people at least fixed built-in script when breaking things)
Also force post process off. This is a partial fix for Bug [#21410], there is still the problem that loading back multilayer exr as render results doesn't load the composited result correctly (bug is assigned to Brecht). The results are still ok when downloaded outside of the render engine, so there's a work around for now.
This commit is contained in:
parent
41425c1aa4
commit
c4f0a07267
@ -186,6 +186,7 @@ def requestResult(conn, job_id, frame):
|
|||||||
class NetworkRenderEngine(bpy.types.RenderEngine):
|
class NetworkRenderEngine(bpy.types.RenderEngine):
|
||||||
bl_idname = 'NET_RENDER'
|
bl_idname = 'NET_RENDER'
|
||||||
bl_label = "Network Render"
|
bl_label = "Network Render"
|
||||||
|
bl_postprocess = False
|
||||||
def render(self, scene):
|
def render(self, scene):
|
||||||
if scene.network_render.mode == "RENDER_CLIENT":
|
if scene.network_render.mode == "RENDER_CLIENT":
|
||||||
self.render_client(scene)
|
self.render_client(scene)
|
||||||
@ -268,7 +269,7 @@ class NetworkRenderEngine(bpy.types.RenderEngine):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
result = self.begin_result(0, 0, x, y)
|
result = self.begin_result(0, 0, x, y)
|
||||||
result.load_from_file(netsettings.path + "output.exr", 0, 0)
|
result.load_from_file(netsettings.path + "output.exr")
|
||||||
self.end_result(result)
|
self.end_result(result)
|
||||||
|
|
||||||
conn.close()
|
conn.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user