diff --git a/GameData/ConformalDecals/Plugins/ConformalDecals.dll b/GameData/ConformalDecals/Plugins/ConformalDecals.dll index 7ff9bc3..d5b6789 100644 Binary files a/GameData/ConformalDecals/Plugins/ConformalDecals.dll and b/GameData/ConformalDecals/Plugins/ConformalDecals.dll differ diff --git a/GameData/ConformalDecals/Versioning/ConformalDecals.version b/GameData/ConformalDecals/Versioning/ConformalDecals.version index d1c4139..503d33d 100644 --- a/GameData/ConformalDecals/Versioning/ConformalDecals.version +++ b/GameData/ConformalDecals/Versioning/ConformalDecals.version @@ -6,7 +6,7 @@ { "MAJOR":0, "MINOR":2, - "PATCH":5, + "PATCH":6, "BUILD":0 }, "KSP_VERSION": diff --git a/README.md b/README.md index 5e6663a..febd796 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Conformal Decals v0.2.5 +# Conformal Decals v0.2.6 [![Build Status](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals.svg?branch=release)](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals) [![Art: CC BY-SA 4.0](https://img.shields.io/badge/Art%20License-CC%20BY--SA%204.0-orange.svg)](https://creativecommons.org/licenses/by-sa/4.0/) [![Code: GPL v3](https://img.shields.io/badge/Code%20License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![Screenshot](http://pileof.rocks/KSP/images/ConformalDecalsHeader.png) diff --git a/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs b/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs index cfd018b..9f578c4 100644 --- a/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs +++ b/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs @@ -41,7 +41,14 @@ namespace ConformalDecals.MaterialProperties { public Vector2 Dimensions => new Vector2(_texture.width, _texture.height); public Vector2 MaskedDimensions => _hasTile ? _tileRect.size : Dimensions; - public float AspectRatio => MaskedHeight / (float) MaskedWidth; + public float AspectRatio { + get { + if (_texture == null) return 1; + if (_textureUrl?.Contains("Squad/Flags") == true) return 0.625f; + if (_hasTile) return MaskedHeight / (float) MaskedWidth; + return _texture.height / _texture.width; + } + } public override void ParseNode(ConfigNode node) { base.ParseNode(node); diff --git a/Source/ConformalDecals/Properties/AssemblyInfo.cs b/Source/ConformalDecals/Properties/AssemblyInfo.cs index 0d9584a..f2a1459 100644 --- a/Source/ConformalDecals/Properties/AssemblyInfo.cs +++ b/Source/ConformalDecals/Properties/AssemblyInfo.cs @@ -1,5 +1 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: KSPAssembly("ConformalDecals", 0, 1, 0)] +[assembly: KSPAssembly("ConformalDecals", 0, 2, 6)] \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index 9e062d3..dbaba71 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,9 @@ +v0.2.6 +------ +- Fixes: + - Fixed stock flags appearing stretched by forcing their aspect ratio to be correct. + - Another attempted fix for the planet text glitch. + v0.2.5 ------ - Fixes: