Fix #104781: Sun Position: North line not hidden when offset changed
commit2a562f9a8fd6026124db6d14000bc24d4a3ebaa9
authorDamien Picard <dam.pic@free.fr>
Fri, 28 Jul 2023 10:17:44 +0000 (28 12:17 +0200)
committerPhilipp Oeser <philipp@blender.org>
Wed, 9 Aug 2023 19:19:28 +0000 (9 21:19 +0200)
tree9fff113e6d1caaffa4bf2ce88704fb0b27e6371e
parent90a7110b5ced09be0513d6b98d5b401b71f7098b
Fix #104781: Sun Position: North line not hidden when offset changed

The draw handler for the North line would get added even if it existed
every time the North was updated. This resulted in multiple lines being
drawn at the same place, and only the last one could be removed, so a
North line remained.

This commit adds a check that the North handler does not already
exists before registering it.
sun_position/draw.py