mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
For Method, enable corner rounding/input shaping if using highspeed type intents
This commit is contained in:
parent
4cb1c9e9ac
commit
868e74e84b
@ -249,13 +249,17 @@ class MakerbotWriter(MeshWriter):
|
|||||||
|
|
||||||
meta["preferences"] = dict()
|
meta["preferences"] = dict()
|
||||||
bounds = application.getBuildVolume().getBoundingBox()
|
bounds = application.getBuildVolume().getBoundingBox()
|
||||||
|
intent = CuraApplication.getInstance().getIntentManager().currentIntentCategory
|
||||||
meta["preferences"]["instance0"] = {
|
meta["preferences"]["instance0"] = {
|
||||||
"machineBounds": [bounds.right, bounds.front, bounds.left, bounds.back] if bounds is not None else None,
|
"machineBounds": [bounds.right, bounds.front, bounds.left, bounds.back] if bounds is not None else None,
|
||||||
"printMode": CuraApplication.getInstance().getIntentManager().currentIntentCategory,
|
"printMode": intent
|
||||||
}
|
}
|
||||||
|
|
||||||
if file_format == "application/x-makerbot":
|
if file_format == "application/x-makerbot":
|
||||||
accel_overrides = meta["accel_overrides"] = {}
|
accel_overrides = meta["accel_overrides"] = {}
|
||||||
|
if intent in ['highspeed', 'highspeedsolid']:
|
||||||
|
accel_overrides['do_input_shaping'] = True
|
||||||
|
accel_overrides['do_corner_rounding'] = True
|
||||||
bead_mode_overrides = accel_overrides["bead_mode"] = {}
|
bead_mode_overrides = accel_overrides["bead_mode"] = {}
|
||||||
|
|
||||||
accel_enabled = global_stack.getProperty('acceleration_enabled', 'value')
|
accel_enabled = global_stack.getProperty('acceleration_enabled', 'value')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user