def updateBrush(self): if not self.mEditBrush is None: self.mEditBrush = None image = ogre.Image() image.load("brush.png", "ET") image.resize(self.brushSize, self.brushSize) self.mEditBrush = ET.loadBrushFromImage(image)
def updatePaintBrush(self): if self.currentPaintBrushName is None: return if self.currentPaintBrush is not None: self.currentPaintBrush = None image = og.Image() image.load(self.currentPaintBrushName, "ET") image.resize(self.paintBrushSize, self.paintBrushSize) self.currentPaintBrush = ET.loadBrushFromImage(image)