diff options
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activity.py b/activity.py index 823143a..4dd609c 100644 --- a/activity.py +++ b/activity.py @@ -318,7 +318,10 @@ class PhysicsActivity(activity.Activity): def _palette_icon_clicked(self, button, toolname, value_name, value): for tool in tools.allTools: if tool.name == toolname: - tool.palette_data[value_name] = value + if hasattr(tool, 'palette_data_type'): + tool.palette_data_type = value + else: + tool.palette_data[value_name] = value def _slider_label_palette(self, slider, toolname, dataname): value = slider.get_value() |