diff --git a/src/Commands/AddGridColCmd.cpp b/src/Commands/AddGridColCmd.cpp index 645234e..08e1372 100644 --- a/src/Commands/AddGridColCmd.cpp +++ b/src/Commands/AddGridColCmd.cpp @@ -9,6 +9,8 @@ AddGridColCmd::AddGridColCmd(GridWarpSurface * s, ProjectionEditor * e){ } void AddGridColCmd::exec(){ + + // TODO: Figure out nice math to not loose existing vertex positions _vertices = _surface->getVertices(); _texCoords = _surface->getTexCoords(); _surface->setGridCols(_surface->getGridCols() + 1); diff --git a/src/Commands/AddGridRowCmd.cpp b/src/Commands/AddGridRowCmd.cpp index 7f76335..32b7925 100644 --- a/src/Commands/AddGridRowCmd.cpp +++ b/src/Commands/AddGridRowCmd.cpp @@ -9,6 +9,8 @@ AddGridRowCmd::AddGridRowCmd(GridWarpSurface * s, ProjectionEditor * e){ } void AddGridRowCmd::exec(){ + + // TODO: Figure out nice math to not loose existing vertex positions _vertices = _surface->getVertices(); _texCoords = _surface->getTexCoords(); _surface->setGridRows(_surface->getGridRows() + 1); diff --git a/src/Commands/RmGridColCmd.cpp b/src/Commands/RmGridColCmd.cpp index 32485a3..0174b7c 100644 --- a/src/Commands/RmGridColCmd.cpp +++ b/src/Commands/RmGridColCmd.cpp @@ -10,6 +10,8 @@ RmGridColCmd::RmGridColCmd(GridWarpSurface * s, ProjectionEditor * e){ } void RmGridColCmd::exec(){ + + // TODO: Figure out nice math to not loose existing vertex positions if(_surface->getGridCols() > 1){ _vertices = _surface->getVertices(); diff --git a/src/Commands/RmGridRowCmd.cpp b/src/Commands/RmGridRowCmd.cpp index 0df2359..94c6193 100644 --- a/src/Commands/RmGridRowCmd.cpp +++ b/src/Commands/RmGridRowCmd.cpp @@ -10,6 +10,8 @@ RmGridRowCmd::RmGridRowCmd(GridWarpSurface * s, ProjectionEditor * e){ } void RmGridRowCmd::exec(){ + + // TODO: Figure out nice math to not loose existing vertex positions if(_surface->getGridRows() > 1){ _vertices = _surface->getVertices();