mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Added args to log so variables can be logged aswell
This commit is contained in:
parent
0c82cb92b5
commit
0d5621e148
@ -10,7 +10,7 @@ class PrinterApplication(QtApplication):
|
|||||||
self._plugin_registry.loadPlugins({ "type": "StorageDevice" })
|
self._plugin_registry.loadPlugins({ "type": "StorageDevice" })
|
||||||
self._plugin_registry.loadPlugins({ "type": "View" })
|
self._plugin_registry.loadPlugins({ "type": "View" })
|
||||||
self._plugin_registry.loadPlugins({ "type": "MeshHandler" })
|
self._plugin_registry.loadPlugins({ "type": "MeshHandler" })
|
||||||
self._plugin_registry.loadPlugins({ "type": "Logging"})
|
self._plugin_registry.loadPlugins({ "type": "Logger"})
|
||||||
|
|
||||||
self.getController().setActiveView("MeshView")
|
self.getController().setActiveView("MeshView")
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ class PrinterApplication(QtApplication):
|
|||||||
mesh = SceneObject()
|
mesh = SceneObject()
|
||||||
mesh.setMeshData(self.getMeshFileHandler().read("plugins/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
|
mesh.setMeshData(self.getMeshFileHandler().read("plugins/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
|
||||||
root.addChild(mesh)
|
root.addChild(mesh)
|
||||||
|
self.log('i',"Application started")
|
||||||
self.setMainQml(os.path.dirname(__file__) + "/Printer.qml")
|
self.setMainQml(os.path.dirname(__file__) + "/Printer.qml")
|
||||||
self.initializeEngine()
|
self.initializeEngine()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user