check without parameter

This commit is contained in:
2020-07-30 09:44:48 +02:00
parent 5f2d1b3eb7
commit 00a69e72a2
6 changed files with 35 additions and 1 deletions

View File

@ -642,8 +642,8 @@ class ConstraintAnnotator:
def check_replace_text(self):
for check_idx, check in enumerate(self.objectspace.space.constraints.check):
namespace = check.namespace
if hasattr(check, 'param'):
namespace = check.namespace
for idx, param in enumerate(check.param):
if param.type == 'variable':
param.text = self.objectspace.paths.get_variable_path(param.text, namespace)