Update the paint tool shape with the viewer image changes

This commit is contained in:
blink1073 committed 2014-02-08 22:12:01 -06:00
1 parent 73bf701b5c
commit 85537e3f85
1 file changed
+4
+4
View File
@@ -43,6 +43,10 @@ class LabelPainter(Plugin):
self.paint_tool.label = self._label_widget.index = 1
self.artists.append(self.paint_tool)
def _on_new_image(self, image):
"""Update plugin for new images."""
self.paint_tool.shape = image.shape
def on_enter(self, overlay):
pass