From d03f5441b0f686f7315a158e4d8ac7a68aabd11b Mon Sep 17 00:00:00 2001 From: omigamedev Date: Thu, 2 May 2019 18:00:59 +0200 Subject: [PATCH] fix polygon selection and add steam deploy script --- .gitignore | 4 ++++ src/canvas_modes.cpp | 3 ++- src/main.cpp | 7 +++++++ steam/build.bat | 13 ++++++++++++ steam/scripts/app_build_954880.vdf | 15 ++++++++++++++ steam/scripts/depot_build_954881.vdf | 31 ++++++++++++++++++++++++++++ 6 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 steam/build.bat create mode 100644 steam/scripts/app_build_954880.vdf create mode 100644 steam/scripts/depot_build_954881.vdf diff --git a/.gitignore b/.gitignore index 91e3366..711240b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ PanoPainterPackage/_pkginfo.txt PanoPainterPackage/AppPackages/ PanoPainterPackage/BundleArtifacts/ Thumbs.db + +steam/content/ +steam/output/ +steam/steamid\.txt diff --git a/src/canvas_modes.cpp b/src/canvas_modes.cpp index cbbaacf..164d8dc 100644 --- a/src/canvas_modes.cpp +++ b/src/canvas_modes.cpp @@ -706,7 +706,7 @@ void CanvasModeMaskLine::leave(kCanvasMode next) { if (next != kCanvasMode::Draw && next != kCanvasMode::Erase && next != kCanvasMode::Line) { - m_points2d.clear(); + m_points.clear(); m_active_tool = false; Canvas::I->m_smask_active = false; } @@ -1355,6 +1355,7 @@ void CanvasModeTransform::leave(kCanvasMode next) layer->optimize(); //auto m = static_cast(Canvas::I->modes[(int)kCanvasMode::MaskFree][0]); //m->clear(); + Canvas::I->draw_merge(); } void CanvasModeTransform::on_Draw(const glm::mat4& ortho, const glm::mat4& proj, const glm::mat4& camera) diff --git a/src/main.cpp b/src/main.cpp index 1d546b7..ed4283f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -689,6 +689,7 @@ int main(int argc, char** argv) return -1; // A negative number because you are a negative one } + bool start_in_vr = false; if (argc > 1) { switch (const_hash(argv[1])) @@ -697,6 +698,9 @@ int main(int argc, char** argv) App::I.initShaders(); App::I.cmd_convert(argv[2], argv[3]); return 0; + case const_hash("-vrmode"): + start_in_vr = true; + break; default: break; } @@ -844,6 +848,9 @@ int main(int argc, char** argv) SetTimer(hWnd, 1, 500, NULL); + if (start_in_vr) + App::I.vr_start(); + MSG msg; LOG("start main loop"); while (running == 1) diff --git a/steam/build.bat b/steam/build.bat new file mode 100644 index 0000000..7f21d3a --- /dev/null +++ b/steam/build.bat @@ -0,0 +1,13 @@ +@echo off +mkdir content +xcopy /I /D /Y /S "..\x64\Release\*.dll" content +xcopy /I /D /Y /S "..\data\*" content\data\ +for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set BRANCH=%%i +for /f %%i in ('git log "--pretty=format:%%h" -n 1') do set HASH=%%i +for /f %%i in ('git rev-list --count HEAD') do set COUNT=%%i +for /f %%i in ('git describe --tags "--abbrev=0"') do set TAG=%%i +set VERSION=%TAG%.%COUNT% (%HASH%-%BRANCH%) +echo Building version %VERSION% +set /p ID=