Commit: 2a41e0822ad8af7aa68ab112cec8557a5b1f64fe Author: Hans Goudey Date: Thu Jan 19 11:14:56 2023 -0600 Branches: master https://developer.blender.org/rB2a41e0822ad8af7aa68ab112cec8557a5b1f64fe
Fix T103911: Custom property edit gets wrong existing default The array length was wrong for all types after 0e89d2431840386fe9b, and a typo meant that the boolean defaults were assigned to the int defaults. =================================================================== M release/scripts/startup/bl_operators/wm.py =================================================================== diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index b8f5fc596c3..cb881ad024e 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1587,8 +1587,9 @@ class WM_OT_properties_edit(Operator): elif self.property_type == 'STRING': self.default_string = rna_data["default"] elif self.property_type in {'BOOL', 'BOOL_ARRAY'}: - self.default_int = self._convert_new_value_array(rna_data["default"], bool, 32) - elif self.property_type in {'FLOAT_ARRAY', 'INT_ARRAY', 'BOOL_ARRAY'}: + self.default_bool = self._convert_new_value_array(rna_data["default"], bool, 32) + + if self.property_type in {'FLOAT_ARRAY', 'INT_ARRAY', 'BOOL_ARRAY'}: self.array_length = len(item[name]) # The dictionary does not contain the description if it was empty. _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs