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.
This commit is contained in:
Christoph Dittmann 2020-09-18 09:38:40 +02:00 committed by phkahler
parent 2adf5decb5
commit 34328c9756

View File

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