Fix Error when cleaning image behind us #665

This commit is contained in:
Julien Duponchelle committed 2016-09-02 11:46:08 +02:00
1 parent be0fee99e7
commit 43afce740d
2 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -171,7 +171,9 @@ class Drawing:
# Update node properties with additional elements
svg_changed = False
for prop in kwargs:
if getattr(self, prop) != kwargs[prop]:
if prop == "drawing_id":
pass # No good reason to change a drawing_id
elif getattr(self, prop) != kwargs[prop]:
if prop == "svg":
# To avoid spamming client with large data we don't send the svg if the SVG didn't change
svg_changed = True