diff options
| author | Kevin Burk <xavierholt@gmail.com> | 2020-08-21 13:37:15 -0700 |
|---|---|---|
| committer | Glenn Smith <couleeapps@gmail.com> | 2020-08-26 15:04:59 -0400 |
| commit | aa5e9651f1320e40222337e23410e6a2e9642ae9 (patch) | |
| tree | f2fca92e1556c655730a3bd48493c78a4275afaf /python | |
| parent | 538d936d936f3236337a51739ff71d5aac7e8743 (diff) | |
Persistent setter for variable names.
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py index 4a80a83b..42ea5a07 100644 --- a/python/function.py +++ b/python/function.py @@ -874,7 +874,14 @@ class Variable(object): @name.setter def name(self, value): - self._name = value + if self._function is None: + self._name = value + elif value is not None: + self._function.create_user_var(self, self._type, value) + self._name = value + else: + self._function.delete_user_var(self) + # TODO: Reset to default name! @property def type(self): |
