mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00

Increase simulation speed. Hide Layer Thickness option in color scheme. Hide nozzle when switching layers. Set the handles in front of the view. Name changed back to "Layer View"
27 lines
828 B
Python
27 lines
828 B
Python
# Copyright (c) 2017 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from PyQt5.QtQml import qmlRegisterSingletonType
|
|
|
|
from UM.i18n import i18nCatalog
|
|
from . import SimulationViewProxy, SimulationView
|
|
|
|
catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
return {
|
|
"view": {
|
|
"name": catalog.i18nc("@item:inlistbox", "Layer view"),
|
|
"view_panel": "SimulationView.qml",
|
|
"weight": 2
|
|
}
|
|
}
|
|
|
|
def createSimulationViewProxy(engine, script_engine):
|
|
return SimulationViewProxy.SimulatorViewProxy()
|
|
|
|
def register(app):
|
|
simulation_view = SimulationView.SimulationView()
|
|
qmlRegisterSingletonType(SimulationViewProxy.SimulationViewProxy, "UM", 1, 0, "SimulationView", simulation_view.getProxy)
|
|
return { "view": SimulationView.SimulationView()}
|