From 7c5b78d2c710441e1ecd3485888701171529aaf9 Mon Sep 17 00:00:00 2001 From: bonj Date: Tue, 24 Oct 2023 13:57:23 +0200 Subject: [PATCH] Fix "Fix #102885": Wrong check is always False The check was incorrect, so it always reset the subtype to NONE. Pull Request: https://projects.blender.org/blender/blender/pulls/114038 --- scripts/startup/bl_operators/wm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index bf71caf89d7..634959c09d1 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -1666,7 +1666,7 @@ class WM_OT_properties_edit(Operator): self.soft_max_float = rna_data["soft_max"] self.precision = rna_data["precision"] self.step_float = rna_data["step"] - if rna_data["subtype"] in self.subtype_items_cb(None): + if rna_data["subtype"] in [item[0] for item in self.subtype_items_cb(None)]: self.subtype = rna_data["subtype"] self.use_soft_limits = ( self.min_float != self.soft_min_float or