Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index c4c9110..0c8c249 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -506,10 +506,10 @@ class Block:
else:
self._set_labels(i, str(v))
elif self.type == 'block' and self.name in CONSTANTS:
- if self.name in COLORDICT:
- v = COLORDICT[self.name][0]
+ if CONSTANTS[self.name] in COLORDICT:
+ v = COLORDICT[CONSTANTS[self.name]][0]
if v is None:
- v = COLORDICT[self.name][1]
+ v = COLORDICT[CONSTANTS[self.name]][1]
else:
v = CONSTANTS[self.name]
self._set_labels(0, block_names[self.name][0] + ' = ' + str(v))