Skip to content

Commit

Permalink
Use same scene rect for animation as for modelling view
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Aug 22, 2024
1 parent c3a4c48 commit 0e58703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HopsanGUI/GraphicsView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ AnimatedGraphicsView::AnimatedGraphicsView(QGraphicsScene *pScene, QWidget *pPar
this->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
this->setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
this->setSceneRect(0,0,5000,5000);
this->setSceneRect(-25000+2500,-25000+2500,50000,50000);
this->centerOn(this->sceneRect().center());

mIsoColor = QColor("white");
Expand Down

0 comments on commit 0e58703

Please sign in to comment.