Skip to content

Commit

Permalink
MM Silhouette Renderer - Make resize_occured calculation more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Oct 16, 2024
1 parent 9ffb9d3 commit 83c1ec1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/mmSolver/render/RenderOverrideSilhouette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,12 @@ MStatus RenderOverrideSilhouette::setup(const MString &destination) {
renderer->outputTargetSize(target_width, target_height);
CHECK_MSTATUS_AND_RETURN_IT(status);

const bool resize_occured =
(m_target_descriptions[SilhouetteTargetId::kColorTarget]->width() !=
target_width ||
m_target_descriptions[SilhouetteTargetId::kDepthTarget]
->height() != target_height);
const auto color_target_width =
m_target_descriptions[SilhouetteTargetId::kColorTarget]->width();
const auto depth_target_height =
m_target_descriptions[SilhouetteTargetId::kDepthTarget]->height();
const bool resize_occured = (color_target_width != target_width) ||
(depth_target_height != target_height);

for (uint32_t target_id = 0;
target_id < SilhouetteTargetId::kTargetCount; ++target_id) {
Expand Down

0 comments on commit 83c1ec1

Please sign in to comment.