D5: Refactoring

This commit is contained in:
Victor Larchenko 2016-11-22 16:30:56 +06:00 committed by Youness Alaoui
parent 1631045d7a
commit cd7979e301
3 changed files with 102 additions and 105 deletions

View file

@ -546,6 +546,10 @@ class CuraApplication(QtApplication):
def changeToLayerView(self):
self.getController().setActiveView("LayerView")
view = self.getController().getActiveView()
view.resetLayerData()
view.setLayer(999999)
view.calculateMaxLayers()
@pyqtSlot(QUrl)
def loadFile(self, file):