From bddc85a360120e18751aa968f33dcdf56d4694cb Mon Sep 17 00:00:00 2001 From: Herbert Crepaz Date: Thu, 25 Oct 2018 14:56:02 +0300 Subject: [PATCH] Small code corrections Fixes #239. --- src/appleseed-max-impl/appleseedrenderer/appleseedrenderer.cpp | 2 +- .../appleseedrenderer/appleseedrendererparamdlg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appleseed-max-impl/appleseedrenderer/appleseedrenderer.cpp b/src/appleseed-max-impl/appleseedrenderer/appleseedrenderer.cpp index 444945e..21109b7 100644 --- a/src/appleseed-max-impl/appleseedrenderer/appleseedrenderer.cpp +++ b/src/appleseed-max-impl/appleseedrenderer/appleseedrenderer.cpp @@ -1117,7 +1117,7 @@ ParamBlockDesc2 g_param_block_desc( p_end, ParamIdOptLightOutsideVolumes, L"optimize_for_lights_outside_volumes", TYPE_BOOL, P_TRANSIENT, 0, - p_ui, ParamMapIdLighting, TYPE_SINGLECHEKBOX, IDC_CHECK_LIGHT_OUTSIDE_VOLUMES, + p_ui, ParamMapIdPathTracer, TYPE_SINGLECHEKBOX, IDC_CHECK_LIGHT_OUTSIDE_VOLUMES, p_default, FALSE, p_accessor, &g_pblock_accessor, p_end, diff --git a/src/appleseed-max-impl/appleseedrenderer/appleseedrendererparamdlg.cpp b/src/appleseed-max-impl/appleseedrenderer/appleseedrendererparamdlg.cpp index 5a7d711..c851478 100644 --- a/src/appleseed-max-impl/appleseedrenderer/appleseedrendererparamdlg.cpp +++ b/src/appleseed-max-impl/appleseedrenderer/appleseedrendererparamdlg.cpp @@ -543,7 +543,7 @@ struct AppleseedRendererParamDlg::Impl if (m_pmap_image_sampling != nullptr) DestroyRParamMap2(m_pmap_image_sampling); - if (m_pmap_postprocessing != nullptr) + if (m_pmap_pathtracer != nullptr) DestroyRParamMap2(m_pmap_pathtracer); if (m_pmap_postprocessing != nullptr)