diff --git a/GameData/ConformalDecals/Plugins/ConformalDecals.dll b/GameData/ConformalDecals/Plugins/ConformalDecals.dll index d5b6789..f519f6a 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 503d33d..4dfbdd5 100644 --- a/GameData/ConformalDecals/Versioning/ConformalDecals.version +++ b/GameData/ConformalDecals/Versioning/ConformalDecals.version @@ -7,7 +7,7 @@ "MAJOR":0, "MINOR":2, "PATCH":6, - "BUILD":0 + "BUILD":1 }, "KSP_VERSION": { diff --git a/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs b/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs index 9f578c4..9a096aa 100644 --- a/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs +++ b/Source/ConformalDecals/MaterialProperties/MaterialTextureProperty.cs @@ -45,8 +45,7 @@ namespace ConformalDecals.MaterialProperties { 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; + return MaskedHeight / (float) MaskedWidth; } } diff --git a/Source/ConformalDecals/ModuleConformalDecal.cs b/Source/ConformalDecals/ModuleConformalDecal.cs index 8181a87..64bc2a8 100644 --- a/Source/ConformalDecals/ModuleConformalDecal.cs +++ b/Source/ConformalDecals/ModuleConformalDecal.cs @@ -400,7 +400,7 @@ namespace ConformalDecals { protected void UpdateScale() { scale = Mathf.Max(0.01f, scale); depth = Mathf.Max(0.01f, depth); - var aspectRatio = materialProperties.AspectRatio; + var aspectRatio = Mathf.Max(0.01f, materialProperties.AspectRatio); Vector2 size; switch (scaleMode) {