kopia lustrzana https://github.com/vilemduha/blendercam
Don't show image resolution settings if using exact mode
rodzic
3fb507dc1a
commit
54bd482810
|
@ -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')
|
||||
|
|
Ładowanie…
Reference in New Issue