|
@@ -13,7 +13,6 @@ from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator
|
|
|
from UM.Mesh.ReadMeshJob import ReadMeshJob
|
|
|
from UM.Logger import Logger
|
|
|
from UM.Preferences import Preferences
|
|
|
-from UM.Platform import Platform
|
|
|
from UM.JobQueue import JobQueue
|
|
|
from UM.SaveFile import SaveFile
|
|
|
from UM.Scene.Selection import Selection
|
|
@@ -50,12 +49,12 @@ from PyQt5.QtGui import QColor, QIcon
|
|
|
from PyQt5.QtWidgets import QMessageBox
|
|
|
from PyQt5.QtQml import qmlRegisterUncreatableType, qmlRegisterSingletonType, qmlRegisterType
|
|
|
|
|
|
-import platform
|
|
|
import sys
|
|
|
import os.path
|
|
|
import numpy
|
|
|
import copy
|
|
|
import urllib
|
|
|
+
|
|
|
numpy.seterr(all="ignore")
|
|
|
|
|
|
try:
|
|
@@ -90,6 +89,7 @@ class CuraApplication(QtApplication):
|
|
|
SettingDefinition.addSupportedProperty("settable_per_meshgroup", DefinitionPropertyType.Any, default = True, read_only = True)
|
|
|
SettingDefinition.addSupportedProperty("settable_globally", DefinitionPropertyType.Any, default = True, read_only = True)
|
|
|
SettingDefinition.addSupportedProperty("global_inherits_stack", DefinitionPropertyType.Function, default = "-1")
|
|
|
+ SettingDefinition.addSupportedProperty("resolve", DefinitionPropertyType.Function, default = None)
|
|
|
SettingDefinition.addSettingType("extruder", None, str, Validator)
|
|
|
|
|
|
SettingFunction.registerOperator("extruderValues", cura.Settings.ExtruderManager.getExtruderValues)
|
|
@@ -925,3 +925,7 @@ class CuraApplication(QtApplication):
|
|
|
self._additional_components[area_id].append(component)
|
|
|
|
|
|
self.additionalComponentsChanged.emit(area_id)
|
|
|
+
|
|
|
+ @pyqtSlot(str)
|
|
|
+ def log(self, msg):
|
|
|
+ Logger.log("d", msg)
|