From 1d90f9ca7cc4bdcf74f423ae9411178abd762e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sofus=20Albert=20H=C3=B8gsbro=20Rose?= Date: Tue, 9 Apr 2024 10:43:28 +0200 Subject: [PATCH] fix: Case-insensitive constants search --- .../nodes/inputs/constants/scientific_constant.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blender_maxwell/node_trees/maxwell_sim_nodes/nodes/inputs/constants/scientific_constant.py b/src/blender_maxwell/node_trees/maxwell_sim_nodes/nodes/inputs/constants/scientific_constant.py index c83dd9a..58b05e9 100644 --- a/src/blender_maxwell/node_trees/maxwell_sim_nodes/nodes/inputs/constants/scientific_constant.py +++ b/src/blender_maxwell/node_trees/maxwell_sim_nodes/nodes/inputs/constants/scientific_constant.py @@ -34,7 +34,11 @@ class ScientificConstantNode(base.MaxwellSimNode): self, edit_text: str, ): - return [name for name in constants.SCI_CONSTANTS if edit_text in name] + return [ + name + for name in constants.SCI_CONSTANTS + if edit_text.lower() in name.lower() + ] def on_update_sci_constant( self,