diff options
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r-- | rigify/__init__.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py index adfa6350..83aafb8c 100644 --- a/rigify/__init__.py +++ b/rigify/__init__.py @@ -416,15 +416,18 @@ class RigifyParameterValidator(object): print("!!! RIGIFY RIG %s: INVALID DEFINITION FOR RIG PARAMETER %s: %r\n" % (self.__rig_name, name, val)) return + # actually defining the property modifies the dictionary with new parameters, so copy it now + new_def = (val[0], val[1].copy()) + + if 'poll' in new_def[1]: + del new_def[1]['poll'] + if name in self.__prop_table: cur_rig, cur_info = self.__prop_table[name] - if val != cur_info: + if new_def != cur_info: print("!!! RIGIFY RIG %s: REDEFINING PARAMETER %s AS:\n\n %s\n" % (self.__rig_name, name, format_property_spec(val))) print("!!! PREVIOUS DEFINITION BY %s:\n\n %s\n" % (cur_rig, format_property_spec(cur_info))) - # actually defining the property modifies the dictionary with new parameters, so copy it now - new_def = (val[0], val[1].copy()) - # inject a generic update callback that calls the appropriate rig classmethod val[1]['update'] = update_callback(name) |