mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Fix circular import
Yeah, running tests is not enough when it doesn't catch these. Contributes to issue CURA-5460.
This commit is contained in:
parent
7434033405
commit
3ee2b753e6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
from PyQt5.QtCore import QObject, Qt, pyqtSignal, pyqtProperty
|
from PyQt5.QtCore import QObject, Qt, pyqtSignal, pyqtProperty
|
||||||
|
|
||||||
from cura.CuraApplication import CuraApplication
|
import cura.CuraApplication
|
||||||
from UM.Qt.ListModel import ListModel
|
from UM.Qt.ListModel import ListModel
|
||||||
|
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ class BaseMaterialsModel(ListModel):
|
|||||||
|
|
||||||
def __init__(self, parent: QObject = None) -> None:
|
def __init__(self, parent: QObject = None) -> None:
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._application = CuraApplication.getInstance()
|
self._application = cura.CuraApplication.CuraApplication.getInstance()
|
||||||
self._machine_manager = self._application.getMachineManager()
|
self._machine_manager = self._application.getMachineManager()
|
||||||
|
|
||||||
self.addRoleName(self.RootMaterialIdRole, "root_material_id")
|
self.addRoleName(self.RootMaterialIdRole, "root_material_id")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user