Quick bugfix

This commit is contained in:
Andrew Cassidy 2020-11-29 16:31:41 -08:00
parent e56278c6cb
commit dda988db17
4 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@
"MAJOR":0,
"MINOR":2,
"PATCH":6,
"BUILD":0
"BUILD":1
},
"KSP_VERSION":
{

View File

@ -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;
}
}

View File

@ -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) {