Skip to content

Commit

Permalink
changing the way we access ViewInfo.Viewport() in js/py
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Aug 9, 2024
1 parent a3e7e80 commit dfb100a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/bnd_3dm_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

BND_Viewport* BND_ViewInfo::GetViewport() const
{
return new BND_Viewport(new ON_Viewport(m_view.m_vp), nullptr);
return new BND_Viewport(const_cast<ON_Viewport*>(&m_view.m_vp), nullptr);
}

void BND_ViewInfo::SetViewport(const BND_Viewport& viewport)
Expand Down

0 comments on commit dfb100a

Please sign in to comment.