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
d9e0bbefda
commit
63b98a9a9a
|
@ -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