Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public void InvalidateSlicing()
        {
            cancel_active_compute();

            lock (data_lock) {
                SlicerMeshes    = null;
                SliceSet        = null;
                SliceStackValid = false;
            }

            discard_slice_polylines();

            CC.InvalidateToolPaths();

            if (SlicingInvalidatedEvent != null)
            {
                SlicingInvalidatedEvent();
            }
        }