From ab5534da7f4e08f26de5dcb53eb6b1e5e9502369 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 13 Nov 2023 20:38:04 -0600 Subject: [PATCH] Add limits to cloth brush values. --- Source/Editor/Tools/ClothPainting.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Editor/Tools/ClothPainting.cs b/Source/Editor/Tools/ClothPainting.cs index f12fca9db..28536ea83 100644 --- a/Source/Editor/Tools/ClothPainting.cs +++ b/Source/Editor/Tools/ClothPainting.cs @@ -18,21 +18,25 @@ namespace FlaxEngine.Tools /// /// Brush radius (world-space). /// + [Limit(0)] public float BrushSize = 50.0f; /// /// Brush paint intensity. /// + [Limit(0)] public float BrushStrength = 2.0f; /// /// Brush paint falloff. Hardens or softens painting. /// + [Limit(0)] public float BrushFalloff = 1.5f; /// /// Value to paint with. Hold Ctrl hey to paint with inverse value (1 - value). /// + [Limit(0, 1, 0.01f)] public float PaintValue = 0.0f; ///