Fix infinitely scaled decals with zero scale and depth

pull/19/head
Andrew Cassidy 4 years ago
parent d9e0bbefda
commit 63b98a9a9a
No known key found for this signature in database
GPG Key ID: 963017B38FD477A1

@ -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…
Cancel
Save