From edd69d63ffe16d33dea5ea49d1d92a282e0cdc16 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Tue, 9 Nov 2010 19:29:15 +0100 Subject: [PATCH] graphics: make canvas recompile when a child is added/removed --- kivy/c_ext/graphics.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivy/c_ext/graphics.pyx b/kivy/c_ext/graphics.pyx index 78eb8f87a..a0ba99be7 100644 --- a/kivy/c_ext/graphics.pyx +++ b/kivy/c_ext/graphics.pyx @@ -91,10 +91,12 @@ cdef class Canvas: cpdef add_canvas(self, Canvas canvas): if not canvas in self._children: self._children.append(canvas) + self._need_compile = 1 cpdef remove_canvas(self, Canvas canvas): if canvas in self._children: self._children.remove(canvas) + self._need_compile = 1 cdef add(self, GraphicInstruction instruction): self.need_compile = 1