void setting_modified(bool invalidate_slicing, bool invalidate_paths) { if (invalidate_slicing) { CC.InvalidateSlicing(); } else if (invalidate_paths) { CC.InvalidateToolPaths(); } bValueModified = true; OnSettingModified?.Invoke(this); }
void setting_modified(bool invalidate_slicing, bool invalidate_paths) { WriteToCurrentSettings(); // [RMS] need to do this so that settings are reflected in // slicer. To avoid, we need to know to grab from CC.ObjSettings instead... if (invalidate_slicing) { CC.InvalidateSlicing(); } else if (invalidate_paths) { CC.InvalidateToolPaths(); } bValueModified = true; OnSettingModified?.Invoke(this); }
public void InvalidateSlicing() { cancel_active_compute(); lock (data_lock) { SlicerMeshes = null; SliceSet = null; SliceStackValid = false; } discard_slice_polylines(); CC.InvalidateToolPaths(); if (SlicingInvalidatedEvent != null) { SlicingInvalidatedEvent(); } }