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++;
|
argn++;
|
||||||
if(args[argn] == "top") {
|
if(args[argn] == "top") {
|
||||||
projRight = Vector::From(1, 0, 0);
|
projRight = Vector::From(1, 0, 0);
|
||||||
projUp = Vector::From(0, 1, 0);
|
projUp = Vector::From(0, 0, -1);
|
||||||
} else if(args[argn] == "bottom") {
|
} 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);
|
projRight = Vector::From(1, 0, 0);
|
||||||
projUp = Vector::From(0, 0, 1);
|
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") {
|
} else if(args[argn] == "isometric") {
|
||||||
projRight = Vector::From(0.707, 0.000, -0.707);
|
projRight = Vector::From(0.707, 0.000, -0.707);
|
||||||
projUp = Vector::From(-0.408, 0.816, -0.408);
|
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.projRight = projRight;
|
||||||
SS.GW.scale = SS.GW.ZoomToFit(camera);
|
SS.GW.scale = SS.GW.ZoomToFit(camera);
|
||||||
camera.scale = SS.GW.scale;
|
camera.scale = SS.GW.scale;
|
||||||
|
camera.offset = SS.GW.offset;
|
||||||
SS.GenerateAll();
|
SS.GenerateAll();
|
||||||
|
|
||||||
CairoPixmapRenderer pixmapCanvas;
|
CairoPixmapRenderer pixmapCanvas;
|
||||||
|
|
Loading…
Reference in New Issue