From 4ad091fc9677ceaa462c5a8c0aca74aa02fb5b55 Mon Sep 17 00:00:00 2001 From: jonwd7 Date: Thu, 3 Jul 2014 08:46:54 -0400 Subject: [PATCH 1/2] [Fix] Update window title when saving NIF When the NIF filename is changed (i.e. saving to a new file) the window title was no longer updating. Caused in 8ed1428 --- src/nifskope.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nifskope.cpp b/src/nifskope.cpp index d9189f734..8f7cfa2d2 100644 --- a/src/nifskope.cpp +++ b/src/nifskope.cpp @@ -832,7 +832,11 @@ void NifSkope::save() lineSave->setState( FileSelector::stSuccess ); } - setWindowTitle( nif->getFileInfo().fileName() ); + // TODO: nif->getFileInfo() returns stale data + // Instead create tmp QFileInfo from lineSave text + // Future: updating file info stored in nif + QFileInfo finfo( nifname ); + setWindowTitle( finfo.fileName() ); } setEnabled( true ); From 274eb33443521f4642b075ef037cbe3f80c28fcc Mon Sep 17 00:00:00 2001 From: jonwd7 Date: Thu, 3 Jul 2014 09:20:12 -0400 Subject: [PATCH 2/2] [Fix] Invert UVWidget zoom The zooming in the UV editor was unnatural, as nearly everything in existence uses the opposite directions for zoom in/out. --- src/widgets/uvedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/uvedit.cpp b/src/widgets/uvedit.cpp index 2fe23ed19..753087747 100644 --- a/src/widgets/uvedit.cpp +++ b/src/widgets/uvedit.cpp @@ -64,7 +64,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define BASESIZE 512.0 #define GRIDSIZE 16.0 #define GRIDSEGS 4 -#define ZOOMUNIT 64.0 +#define ZOOMUNIT -64.0 #define MINZOOM 0.1 #define MAXZOOM 20.0 #define MAXSCALE 10.0