Skip to content

Commit 928398e

Browse files
authored
Merge pull request #3460 from Sigma1912/2.9-Fix-preview-update-not-respecting-active-wcs
Don't use RS274NGC_STARTUP_CODE when updating the preview
2 parents f51a6de + 736a3a9 commit 928398e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/emc/rs274ngc/gcodemodule.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,7 @@ static PyObject *parse_file(PyObject *self, PyObject *args) {
777777
if(!RESULT_OK) goto out_error;
778778
result = pinterp->execute();
779779
}
780-
if(initcode && RESULT_OK) {
781-
result = pinterp->read(initcode);
782-
if(!RESULT_OK) goto out_error;
783-
result = pinterp->execute();
784-
}
780+
785781
while(!interp_error && RESULT_OK) {
786782
error_line_offset = 1;
787783
result = pinterp->read();

0 commit comments

Comments
 (0)