Netrender: Fix for API changes (it would be nice if people at least fixed built-in...
authorMartin Poirier <theeth@yahoo.com>
Sun, 28 Mar 2010 20:46:25 +0000 (20:46 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 28 Mar 2010 20:46:25 +0000 (20:46 +0000)
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.

release/scripts/io/netrender/client.py

index aea9c37ff471491244614917a1ce918572c9d5ca..792a699bfe8507e40c1903600ed6d31f5fdd6a9f 100644 (file)
@@ -186,6 +186,7 @@ def requestResult(conn, job_id, frame):
 class NetworkRenderEngine(bpy.types.RenderEngine):
     bl_idname = 'NET_RENDER'
     bl_label = "Network Render"
+    bl_postprocess = False
     def render(self, scene):
         if scene.network_render.mode == "RENDER_CLIENT":
             self.render_client(scene)
@@ -268,7 +269,7 @@ class NetworkRenderEngine(bpy.types.RenderEngine):
             f.close()
 
             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)
 
             conn.close()