Commit: 50105b29524d9ca771e9e93c7286a0f4d21723ed
Author: Hans Goudey
Date:   Tue Jan 17 09:50:06 2023 -0600
Branches: master
https://developer.blender.org/rB50105b29524d9ca771e9e93c7286a0f4d21723ed

Fix T103911: Editing boolean custom property UI data resets value

The old value wasn't retrieved for boolean array properties.

===================================================================

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 fe43051281d..291e412ee75 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1623,7 +1623,7 @@ class WM_OT_properties_edit(Operator):
 
         if prop_type_new == 'BOOL_ARRAY':
             prop_type_old = self.get_property_type(item, name_old)
-            if prop_type_old in {'INT', 'FLOAT', 'FLOAT_ARRAY', 'INT_ARRAY'}:
+            if prop_type_old in {'INT', 'FLOAT', 'FLOAT_ARRAY', 'INT_ARRAY', 
'BOOL_ARRAY'}:
                 return self._convert_new_value_array(item[name_old], bool, 
self.array_length)
             else:
                 return [False] * self.array_length

_______________________________________________
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

Reply via email to