Skip to content

Commit

Permalink
[Mapping] Fix draw in RigidMapping (#5204)
Browse files Browse the repository at this point in the history
* [Mapping] Fix draw in RigidMapping

* Apply suggestions from code review

Co-authored-by: Frederick Roy <[email protected]>

---------

Co-authored-by: Frederick Roy <[email protected]>
  • Loading branch information
hugtalbot and fredroy authored Jan 9, 2025
1 parent 61d4924 commit 964136a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,11 @@ void RigidMapping<TIn, TOut>::setJMatrixBlock(unsigned outIdx, unsigned inIdx)
template <class TIn, class TOut>
void RigidMapping<TIn, TOut>::draw(const core::visual::VisualParams* vparams)
{
if (!vparams->displayFlags().getShowMappings() || this->toModel==nullptr )
if (!vparams->displayFlags().getShowMappings() || !this->toModel )
return;

[[maybe_unused]] const auto stateLifeCycle = vparams->drawTool()->makeStateLifeCycle();

std::vector<type::Vec3> points;
type::Vec3 point;

Expand Down

0 comments on commit 964136a

Please sign in to comment.