Skip to content

Commit

Permalink
Fixed crash when changing rendering parameters for pointcloud2 while …
Browse files Browse the repository at this point in the history
…'Selectable' box is unchecked (#768)

Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Sep 22, 2021
1 parent 3feea08 commit b95948a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ void PointCloudCommon::updateBillboardSize()
}
for (auto & cloud_info : cloud_infos_) {
cloud_info->cloud_->setDimensions(size, size, size);
cloud_info->selection_handler_->setBoxSize(getSelectionBoxSize());
if (cloud_info->selection_handler_) {
cloud_info->selection_handler_->setBoxSize(getSelectionBoxSize());
}
}
context_->queueRender();
}
Expand Down

0 comments on commit b95948a

Please sign in to comment.