netrender
- Add "Get Result" button after a job has been sent (this calls Animate and fetches the results back as render result buffers) - Rendering (animate or single frame) without an active job was broken. Note that this launches a new job for each frame (it's impossible in a render engine to know if an animation is being rendered or a single frame only).
This commit is contained in:
		@@ -229,7 +229,10 @@ class NetworkRenderEngine(bpy.types.RenderEngine):
 | 
			
		||||
			if response.status == http.client.NO_CONTENT:
 | 
			
		||||
				new_job = True
 | 
			
		||||
				netsettings.job_id = clientSendJob(conn, scene)
 | 
			
		||||
				job_id = netsettings.job_id 
 | 
			
		||||
				
 | 
			
		||||
				requestResult(conn, job_id, scene.current_frame)
 | 
			
		||||
				response = conn.getresponse()
 | 
			
		||||
			
 | 
			
		||||
			while response.status == http.client.ACCEPTED and not self.test_break():
 | 
			
		||||
				time.sleep(1)
 | 
			
		||||
 
 | 
			
		||||
@@ -102,6 +102,8 @@ class RENDER_PT_network_job(RenderButtonsPanel):
 | 
			
		||||
		if scene.network_render.server_address != "[default]":
 | 
			
		||||
			col.operator("render.netclientanim", icon='RENDER_ANIMATION')
 | 
			
		||||
			col.operator("render.netclientsend", icon='FILE_BLEND')
 | 
			
		||||
			if scene.network_render.job_id:
 | 
			
		||||
				col.operator("screen.render", text="Get Results", icon='RENDER_ANIMATION').animation = True
 | 
			
		||||
			col.operator("render.netclientweb", icon='QUESTION')
 | 
			
		||||
		col.prop(scene.network_render, "job_name")
 | 
			
		||||
		col.prop(scene.network_render, "job_category")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user