Commit 1bd059f4 authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

PropertyTypeValidity: For list and tuple we should use getPropertyList instead of getProperty

parent cd0da5b4
......@@ -99,6 +99,8 @@ class PropertyTypeValidity(Constraint):
wrong_type = 0
if property_type == 'tales':
value = obj.getProperty(property_id, evaluate=0)
elif any(t in (list, tuple) for t in self._type_dict[property_type]):
value = obj.getPropertyList(property_id)
else:
value = obj.getProperty(property_id)
if value is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment