Cleanup: simplify comparison, clarify comment

This commit is contained in:
Campbell Barton 2022-08-30 21:16:02 +10:00
parent e0ab4b29a9
commit fdc332981e
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ class CYCLES_RENDER_PT_sampling_advanced(CyclesButtonsPanel, Panel):
layout.separator()
heading = layout.column(align=True, heading="Scrambling Distance")
heading.active = not cscene.sampling_pattern == 'SOBOL_BURLEY'
heading.active = cscene.sampling_pattern != 'SOBOL_BURLEY'
heading.prop(cscene, "auto_scrambling_distance", text="Automatic")
heading.prop(cscene, "preview_scrambling_distance", text="Viewport")
heading.prop(cscene, "scrambling_distance", text="Multiplier")

View File

@ -436,7 +436,7 @@ void RE_AcquireResultImage(Render *re, RenderResult *rr, const int view_id)
rr->rectx = re->result->rectx;
rr->recty = re->result->recty;
/* actview view */
/* `scene.rd.actview` view. */
rv = RE_RenderViewGetById(re->result, view_id);
rr->have_combined = (rv->rectf != nullptr);