115 Commits

Author SHA1 Message Date
Ghostkeeper
cfdde8dd07
Simplify indentation of pause at height script
Instead of making lots of nested if statements, use the if statements as an interruption check. This reduces the indentation a lot and makes it easier to read in my opinion. It also makes it easier to add stuff to these checks.
2018-02-12 11:06:17 +01:00
Ghostkeeper
183792ae09
Change 'Tweak' into 'Change' and 'tw@' into 'ch@'
Also in the resulting g-code.

Contributes to issue CURA-4615.
2018-02-09 10:55:50 +01:00
Aleksei S
fdfeeb5496 Renamed: In Postprocessing plugin the "Tweak" script is renamed to "Change"
CURA-4615
2018-02-06 13:38:14 +01:00
Ruben D
77566180f1
Remove commented code
Oops, forgot about this one.
2018-02-04 01:53:10 +01:00
Ruben D
f9bee9ad3e
Change tabs into spaces
I think this IDE isn't configured correctly yet.
2018-02-04 01:39:36 +01:00
Ruben D
927f193270
Only write scripts to stack upon pressing close button
This is more efficient, because we're not writing every time you modify the list of scripts. It's also more complete, since if you don't modify the list of scripts but just modify one of the settings, that setting change also gets written to the stack after closing the window.
2018-02-04 01:26:34 +01:00
Ruben D
bebcd78db0
Reset the selected script index upon changing printers
So that you're not getting into a state of viewing an invalid index. If you switch to a printer with 0 scripts attached, the index is still invalid, but it won't display anything then so you're okay.
2018-02-04 01:13:34 +01:00
Ruben D
91ab53e49c
Somewhat better documentation
Just some stuff that I saw and thought were missing.
2018-02-04 01:10:35 +01:00
Ruben D
8525131849
Create post-processing tool button on start-up
This causes the button to display immediately on start-up if there were any post-processing scripts in the current machine. If there weren't, then no button will be shown (as specified in the QML).
Previously the QML was only loaded first upon clicking the item in the extensions menu. Now it has to be loaded on start-up in order to display that button.
2018-02-04 01:08:15 +01:00
Ruben D
09f580de70
Store post-processing script list in global stack
If you switch and such, it'll load these scripts back in. They are now persistent.
2018-02-04 00:51:43 +01:00
Ruben D
7c291e36c9
Add warning for some bug that I saw
Maybe one day someone will encounter it again and decide to fix it, but I'm lazy.
2018-02-03 23:54:18 +01:00
Diego Prado Gesto
9d267cb9c7 Check if there is any gcode in the scene before executing a post process 2018-01-31 14:36:16 +01:00
ChrisTerBeke
6c0fb110fe Add post processing source files 2018-01-09 10:31:12 +01:00
ChrisTerBeke
9c9c46aade Remove submodule 2018-01-09 10:30:02 +01:00
ChrisTerBeke
1f2007554d Add post processing source files to main repo 2018-01-09 10:27:28 +01:00