From 54bd482810d8d027c28e5f7d78beaa82e35b9a56 Mon Sep 17 00:00:00 2001 From: "Jeff Doyle (nfz)" Date: Fri, 8 Apr 2016 16:49:59 -0300 Subject: [PATCH] Don't show image resolution settings if using exact mode --- scripts/addons/cam/ui.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/addons/cam/ui.py b/scripts/addons/cam/ui.py index fd55c00c..d80eb080 100644 --- a/scripts/addons/cam/ui.py +++ b/scripts/addons/cam/ui.py @@ -605,16 +605,16 @@ class CAM_OPTIMISATION_Panel(CAMButtonsPanel, bpy.types.Panel): layout.prop(ao,'use_exact') if ao.use_exact: layout.prop(ao,'exact_subdivide_edges') - #if not ao.use_exact or: - layout.prop(ao,'pixsize') - layout.prop(ao,'imgres_limit') - - sx=ao.max.x-ao.min.x - sy=ao.max.y-ao.min.y - resx=int(sx/ao.pixsize) - resy=int(sy/ao.pixsize) - l='resolution:'+str(resx)+'x'+str(resy) - layout.label( l) + if exclude_exact or not ao.use_exact: + layout.prop(ao,'pixsize') + layout.prop(ao,'imgres_limit') + + sx=ao.max.x-ao.min.x + sy=ao.max.y-ao.min.y + resx=int(sx/ao.pixsize) + resy=int(sy/ao.pixsize) + l='resolution: '+str(resx)+' x '+str(resy) + layout.label( l) layout.prop(ao,'simulation_detail') layout.prop(ao,'circle_detail')