mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Fix infinitely scaled decals with zero scale and depth
This commit is contained in:
parent
4d2623a1c6
commit
7980ef4791
@ -425,6 +425,8 @@ namespace ConformalDecals {
|
||||
}
|
||||
|
||||
protected void UpdateScale() {
|
||||
scale = Mathf.Max(0.01f, scale);
|
||||
depth = Mathf.Max(0.01f, depth);
|
||||
var aspectRatio = materialProperties.AspectRatio;
|
||||
Vector2 size;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user