Fix view centering and directions or cli thumbnail function.
parent
34328c9756
commit
704bb4a3be
|
@ -121,22 +121,22 @@ static bool RunCommand(const std::vector<std::string> args) {
|
|||
argn++;
|
||||
if(args[argn] == "top") {
|
||||
projRight = Vector::From(1, 0, 0);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
projUp = Vector::From(0, 0, -1);
|
||||
} else if(args[argn] == "bottom") {
|
||||
projRight = Vector::From(-1, 0, 0);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
} else if(args[argn] == "left") {
|
||||
projRight = Vector::From(0, 1, 0);
|
||||
projUp = Vector::From(0, 0, 1);
|
||||
} else if(args[argn] == "right") {
|
||||
projRight = Vector::From(0, -1, 0);
|
||||
projUp = Vector::From(0, 0, 1);
|
||||
} else if(args[argn] == "front") {
|
||||
projRight = Vector::From(-1, 0, 0);
|
||||
projUp = Vector::From(0, 0, 1);
|
||||
} else if(args[argn] == "back") {
|
||||
projRight = Vector::From(1, 0, 0);
|
||||
projUp = Vector::From(0, 0, 1);
|
||||
} else if(args[argn] == "left") {
|
||||
projRight = Vector::From(0, 0, 1);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
} else if(args[argn] == "right") {
|
||||
projRight = Vector::From(0, 0, -1);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
} else if(args[argn] == "front") {
|
||||
projRight = Vector::From(1, 0, 0);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
} else if(args[argn] == "back") {
|
||||
projRight = Vector::From(-1, 0, 0);
|
||||
projUp = Vector::From(0, 1, 0);
|
||||
} else if(args[argn] == "isometric") {
|
||||
projRight = Vector::From(0.707, 0.000, -0.707);
|
||||
projUp = Vector::From(-0.408, 0.816, -0.408);
|
||||
|
@ -218,6 +218,7 @@ static bool RunCommand(const std::vector<std::string> args) {
|
|||
SS.GW.projRight = projRight;
|
||||
SS.GW.scale = SS.GW.ZoomToFit(camera);
|
||||
camera.scale = SS.GW.scale;
|
||||
camera.offset = SS.GW.offset;
|
||||
SS.GenerateAll();
|
||||
|
||||
CairoPixmapRenderer pixmapCanvas;
|
||||
|
|
Loading…
Reference in New Issue