nens / threedi-results-analysis

Plugin for working with 3Di models in QGIS
GNU General Public License v3.0
7 stars 4 forks source link

[animation-settings] Clicking "Relative" gives Python error #1052

Open leendertvanwolfswinkel opened 2 weeks ago

leendertvanwolfswinkel commented 2 weeks ago
image.png
AttributeError: 'MapAnimatorSettings' object has no attribute 'nr_of_classes' 
Traceback (most recent call last):
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\3Di Staging/python/plugins\threedi_results_analysis\tool_animation\map_animator.py", line 568, in _restyle_and_update_nodes
    self._restyle(lines=False, nodes=True)
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\3Di Staging/python/plugins\threedi_results_analysis\tool_animation\map_animator.py", line 558, in _restyle
    self._style_node_layers(result_item, progress_bar)
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\3Di Staging/python/plugins\threedi_results_analysis\tool_animation\map_animator.py", line 494, in _style_node_layers
    current_node_settings.nr_of_classes,
AttributeError: 'MapAnimatorSettings' object has no attribute 'nr_of_classes'
benvanbasten-ns commented 1 week ago

@leendertvanwolfswinkel fixed (on the animation_settings branch)