Fix resolve in profile bug. Removed unnecessary imports. Removed unnecessary watch. Contributes to CURA-2007

This commit is contained in:
Jack Ha 2016-08-24 11:36:10 +02:00
parent 0268bf3f56
commit 9521a85318
3 changed files with 3 additions and 5 deletions

View file

@ -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:
@ -929,5 +928,4 @@ class CuraApplication(QtApplication):
@pyqtSlot(str)
def log(self, msg):
from UM.Logger import Logger
Logger.log("d", msg)

View file

@ -107,7 +107,7 @@ SettingItem
target: input
property: "text"
value: {
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0)) {
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0) && (stackLevel != 1)) {
// We have a resolve function. Indicates that the setting is not settable per extruder and that
// we have to choose between the resolved value (default) and the global value
// (if user has explicitly set this).

View file

@ -125,7 +125,7 @@ ScrollView
id: inheritStackProvider
containerStackId: Cura.MachineManager.activeMachineId
key: model.key
watchedProperties: [ "global_inherits_stack", "value" ]
watchedProperties: [ "global_inherits_stack" ]
}
UM.SettingPropertyProvider