Fix T103911: Editing boolean custom property UI data resets value
The old value wasn't retrieved for boolean array properties.
This commit is contained in:
parent
f8b11528b2
commit
50105b2952
|
@ -1623,7 +1623,7 @@ class WM_OT_properties_edit(Operator):
|
||||||
|
|
||||||
if prop_type_new == 'BOOL_ARRAY':
|
if prop_type_new == 'BOOL_ARRAY':
|
||||||
prop_type_old = self.get_property_type(item, name_old)
|
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)
|
return self._convert_new_value_array(item[name_old], bool, self.array_length)
|
||||||
else:
|
else:
|
||||||
return [False] * self.array_length
|
return [False] * self.array_length
|
||||||
|
|
Loading…
Reference in New Issue