Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--space_view3d_math_vis/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/space_view3d_math_vis/utils.py b/space_view3d_math_vis/utils.py
index 7910bb9c..50c8aba3 100644
--- a/space_view3d_math_vis/utils.py
+++ b/space_view3d_math_vis/utils.py
@@ -50,6 +50,12 @@ class VarStates:
# console variables.
state_props = bpy.context.window_manager.MathVisStatePropList
variables = get_math_data()
+
+ for index, state_prop in reversed(list(enumerate(state_props))):
+ if state_prop.name not in variables:
+ # Variable has been removed from console
+ state_props.remove(index)
+
for key, ktype in variables.items():
if key and key not in state_props:
prop = state_props.add()