mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Merge branch 'main' into release
This commit is contained in:
commit
1e7c6d81c9
Binary file not shown.
@ -7,7 +7,7 @@
|
|||||||
"MAJOR":0,
|
"MAJOR":0,
|
||||||
"MINOR":2,
|
"MINOR":2,
|
||||||
"PATCH":6,
|
"PATCH":6,
|
||||||
"BUILD":0
|
"BUILD":1
|
||||||
},
|
},
|
||||||
"KSP_VERSION":
|
"KSP_VERSION":
|
||||||
{
|
{
|
||||||
|
@ -45,8 +45,7 @@ namespace ConformalDecals.MaterialProperties {
|
|||||||
get {
|
get {
|
||||||
if (_texture == null) return 1;
|
if (_texture == null) return 1;
|
||||||
if (_textureUrl?.Contains("Squad/Flags") == true) return 0.625f;
|
if (_textureUrl?.Contains("Squad/Flags") == true) return 0.625f;
|
||||||
if (_hasTile) return MaskedHeight / (float) MaskedWidth;
|
return MaskedHeight / (float) MaskedWidth;
|
||||||
return _texture.height / _texture.width;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,7 +400,7 @@ namespace ConformalDecals {
|
|||||||
protected void UpdateScale() {
|
protected void UpdateScale() {
|
||||||
scale = Mathf.Max(0.01f, scale);
|
scale = Mathf.Max(0.01f, scale);
|
||||||
depth = Mathf.Max(0.01f, depth);
|
depth = Mathf.Max(0.01f, depth);
|
||||||
var aspectRatio = materialProperties.AspectRatio;
|
var aspectRatio = Mathf.Max(0.01f, materialProperties.AspectRatio);
|
||||||
Vector2 size;
|
Vector2 size;
|
||||||
|
|
||||||
switch (scaleMode) {
|
switch (scaleMode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user