From 8bef2f48a5299a0a55540c386024fbc6a3e05721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 30 Jan 2019 15:57:43 +0100 Subject: [PATCH] Flamenco: Move job-type-specific options to a box below job type selector This should make the relation between the job type and its options clearer. --- blender_cloud/flamenco/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blender_cloud/flamenco/__init__.py b/blender_cloud/flamenco/__init__.py index d865c14..bdc2aba 100644 --- a/blender_cloud/flamenco/__init__.py +++ b/blender_cloud/flamenco/__init__.py @@ -839,6 +839,10 @@ class FLAMENCO_PT_render(bpy.types.Panel, FlamencoPollMixin): labeled_row.label(text='Job Type:') labeled_row.prop(context.scene, 'flamenco_render_job_type', text='') + # Job-type-specific options go directly below the job type selector. + if getattr(context.scene, 'flamenco_render_job_type', None) == 'blender-render-progressive': + box = layout.box() + box.prop(context.scene, 'flamenco_render_chunk_sample_cap') labeled_row = layout.split(**blender.factor(0.25), align=True) labeled_row.label(text='Frame Range:') prop_btn_row = labeled_row.row(align=True) @@ -847,8 +851,6 @@ class FLAMENCO_PT_render(bpy.types.Panel, FlamencoPollMixin): layout.prop(context.scene, 'flamenco_render_job_priority') layout.prop(context.scene, 'flamenco_render_fchunk_size') - if getattr(context.scene, 'flamenco_render_job_type', None) == 'blender-render-progressive': - layout.prop(context.scene, 'flamenco_render_chunk_sample_cap') layout.prop(context.scene, 'flamenco_start_paused') paths_layout = layout.column(align=True)