graphics: make canvas recompile when a child is added/removed

This commit is contained in:
Mathieu Virbel 2010-11-09 19:29:15 +01:00
parent 49f5bab67f
commit edd69d63ff
1 changed files with 2 additions and 0 deletions

View File

@ -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