From 65a6136f3d7fa5b345d53ae9030dfc3472bd76b7 Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:46:28 -0400 Subject: [PATCH] Fix crash when modifier Frequency is dragged to zero Closes #23 --- src/Ember/Architecture/Views/ModifiersView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ember/Architecture/Views/ModifiersView.cs b/src/Ember/Architecture/Views/ModifiersView.cs index 655e119..7b71909 100644 --- a/src/Ember/Architecture/Views/ModifiersView.cs +++ b/src/Ember/Architecture/Views/ModifiersView.cs @@ -217,7 +217,7 @@ private void DrawSelectedModifierProperties() // Frequency property float modifierFrequency = modifier.Frequency; - if (PropertyTable.DragFloatProperty("Frequency"u8, "How often, in times per second, the modifier attempts to update the particle buffer"u8, ref modifierFrequency, 0.1f, 0.0f, float.MaxValue)) + if (PropertyTable.DragFloatProperty("Frequency"u8, "How often, in times per second, the modifier attempts to update the particle buffer"u8, ref modifierFrequency, 0.1f, 0.1f, float.MaxValue)) { modifier.Frequency = modifierFrequency; _context.HasUnsavedChanges = true;