Fix infinitely scaled decals with zero scale and depth

This commit is contained in:
Andrew Cassidy 2020-06-19 17:03:17 -07:00
parent 4d2623a1c6
commit 7980ef4791

View File

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