solvespace-cli: Fix --view

This fixes issues #499. The --view option changes projUp and
projRight. For --view to affect the camera, the camera needs to be
initialized using these values.
pull/707/head
Christoph Dittmann 2020-09-18 09:38:40 +02:00 committed by phkahler
parent 2adf5decb5
commit 34328c9756
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ static bool RunCommand(const std::vector<std::string> args) {
camera.gridFit = true;
camera.width = width;
camera.height = height;
camera.projUp = SS.GW.projUp;
camera.projRight = SS.GW.projRight;
camera.projUp = projUp;
camera.projRight = projRight;
SS.GW.projUp = projUp;
SS.GW.projRight = projRight;