Skip to content

Commit f345f76

Browse files
committed
Fixes #2257
1 parent 7d7a539 commit f345f76

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Interface/Modules/Render/ViewScene.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ void ViewSceneDialog::pullCameraRotation()
784784
" values. " + std::to_string(rotation.size()) + " values were provided.");
785785
}
786786

787-
qDebug() << name_.c_str() << "setCameraRotation" << q.w << q.x << q.y << q.z;
788787
spire->setCameraRotation(q);
789788
}
790789

@@ -866,7 +865,6 @@ void ViewSceneDialog::pushCameraRotation()
866865

867866
auto q = spire->getCameraRotation();
868867
state_->setValue(Parameters::CameraRotation1, makeAnonymousVariableList(q.w, q.x, q.y, q.z));
869-
qDebug() << name_.c_str() << "pushCameraRotation" << q.w << q.x << q.y << q.z;
870868
pushingCameraState_ = false;
871869
}
872870

@@ -924,6 +922,8 @@ void ViewSceneDialog::pullSpecial()
924922
{
925923
if (!pulledSavedVisibility_)
926924
{
925+
pullCameraState();
926+
927927
const auto show = state_->getValue(Parameters::ShowViewer).toBool();
928928

929929
if (show && parentWidget())
@@ -961,8 +961,6 @@ void ViewSceneDialog::pullSpecial()
961961
}
962962

963963
pulledSavedVisibility_ = true;
964-
965-
pullCameraState();
966964
}
967965
}
968966

0 commit comments

Comments
 (0)