T466: Added ability to print loaded gcode
0
.gitignore
vendored
Normal file → Executable file
0
CHANGES
Normal file → Executable file
0
CMakeLists.txt
Normal file → Executable file
0
CPackConfig.cmake
Normal file → Executable file
0
LICENSE
Normal file → Executable file
0
README.md
Normal file → Executable file
0
build.sh
Normal file → Executable file
0
cura.desktop.in
Normal file → Executable file
0
cura.sharedmimeinfo
Normal file → Executable file
0
cura/BuildVolume.py
Normal file → Executable file
0
cura/CameraAnimation.py
Normal file → Executable file
0
cura/CameraImageProvider.py
Normal file → Executable file
0
cura/ConvexHullDecorator.py
Normal file → Executable file
0
cura/ConvexHullNode.py
Normal file → Executable file
0
cura/CrashHandler.py
Normal file → Executable file
0
cura/CuraActions.py
Normal file → Executable file
0
cura/CuraApplication.py
Normal file → Executable file
0
cura/CuraSplashScreen.py
Normal file → Executable file
0
cura/CuraVersion.py.in
Normal file → Executable file
0
cura/Layer.py
Normal file → Executable file
0
cura/LayerData.py
Normal file → Executable file
0
cura/LayerDataBuilder.py
Normal file → Executable file
0
cura/LayerDataDecorator.py
Normal file → Executable file
0
cura/LayerPolygon.py
Normal file → Executable file
0
cura/MachineAction.py
Normal file → Executable file
0
cura/MachineActionManager.py
Normal file → Executable file
0
cura/OneAtATimeIterator.py
Normal file → Executable file
0
cura/PlatformPhysics.py
Normal file → Executable file
0
cura/PlatformPhysicsOperation.py
Normal file → Executable file
0
cura/PrintInformation.py
Normal file → Executable file
0
cura/PrinterOutputDevice.py
Normal file → Executable file
0
cura/ProfileReader.py
Normal file → Executable file
0
cura/ProfileWriter.py
Normal file → Executable file
0
cura/SetParentOperation.py
Normal file → Executable file
0
cura/Settings/ContainerManager.py
Normal file → Executable file
0
cura/Settings/ContainerSettingsModel.py
Normal file → Executable file
0
cura/Settings/CuraContainerRegistry.py
Normal file → Executable file
0
cura/Settings/ExtruderManager.py
Normal file → Executable file
0
cura/Settings/ExtrudersModel.py
Normal file → Executable file
0
cura/Settings/MachineManager.py
Normal file → Executable file
0
cura/Settings/MaterialSettingsVisibilityHandler.py
Normal file → Executable file
0
cura/Settings/QualitySettingsModel.py
Normal file → Executable file
0
cura/Settings/SettingInheritanceManager.py
Normal file → Executable file
0
cura/Settings/SettingOverrideDecorator.py
Normal file → Executable file
0
cura/Settings/__init__.py
Normal file → Executable file
0
cura/ZOffsetDecorator.py
Normal file → Executable file
0
cura/__init__.py
Normal file → Executable file
0
icons/cura-128.png
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
icons/cura-32.png
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
icons/cura-48.png
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
icons/cura-64.png
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
icons/cura.icns
Normal file → Executable file
0
icons/cura.ico
Normal file → Executable file
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
0
installer.nsi
Normal file → Executable file
0
plugins/3MFReader/ThreeMFReader.py
Normal file → Executable file
0
plugins/3MFReader/__init__.py
Normal file → Executable file
0
plugins/AutoSave/AutoSave.py
Normal file → Executable file
0
plugins/AutoSave/__init__.py
Normal file → Executable file
0
plugins/ChangeLogPlugin/ChangeLog.py
Normal file → Executable file
0
plugins/ChangeLogPlugin/ChangeLog.qml
Normal file → Executable file
0
plugins/ChangeLogPlugin/ChangeLog.txt
Normal file → Executable file
0
plugins/ChangeLogPlugin/__init__.py
Normal file → Executable file
0
plugins/CuraEngineBackend/Cura.proto
Normal file → Executable file
0
plugins/CuraEngineBackend/CuraEngineBackend.py
Normal file → Executable file
0
plugins/CuraEngineBackend/ProcessGCodeJob.py
Normal file → Executable file
0
plugins/CuraEngineBackend/ProcessSlicedLayersJob.py
Normal file → Executable file
0
plugins/CuraEngineBackend/StartSliceJob.py
Normal file → Executable file
0
plugins/CuraEngineBackend/__init__.py
Normal file → Executable file
0
plugins/CuraProfileReader/CuraProfileReader.py
Normal file → Executable file
0
plugins/CuraProfileReader/__init__.py
Normal file → Executable file
0
plugins/CuraProfileWriter/CuraProfileWriter.py
Normal file → Executable file
0
plugins/CuraProfileWriter/__init__.py
Normal file → Executable file
8
plugins/GCODEReader/GCODEReader.py
Normal file → Executable file
|
@ -76,7 +76,7 @@ class GCODEReader(MeshReader):
|
|||
else:
|
||||
backend = Application.getInstance().getBackend()
|
||||
backend._pauseSlicing = True
|
||||
backend.backendStateChange.emit(1)
|
||||
backend.backendStateChange.emit(3)
|
||||
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
|
||||
Application.getInstance().setHideSettings(True)
|
||||
|
||||
|
@ -116,6 +116,9 @@ class GCODEReader(MeshReader):
|
|||
backend.close()
|
||||
backend.backendStateChange.emit(1)
|
||||
|
||||
glist = getattr(Application.getInstance().getController().getScene(), "gcode_list")
|
||||
glist.clear()
|
||||
|
||||
file = open(file_name, "r")
|
||||
|
||||
layer_data = LayerDataBuilder.LayerDataBuilder()
|
||||
|
@ -159,6 +162,7 @@ class GCODEReader(MeshReader):
|
|||
# current_path.append([10, 10, 10])
|
||||
# while file.readable():
|
||||
for line in file:
|
||||
glist.append(line)
|
||||
if len(line) == 0:
|
||||
continue
|
||||
if line[0] == ";":
|
||||
|
@ -241,6 +245,8 @@ class GCODEReader(MeshReader):
|
|||
Preferences.getInstance().setValue("cura/jobname_prefix", True)
|
||||
|
||||
|
||||
|
||||
|
||||
view = Application.getInstance().getController().getActiveView()
|
||||
if view.getPluginId() == "LayerView":
|
||||
view.resetLayerData()
|
||||
|
|