Cura/plugins
Ghostkeeper a379e01f1d
Fix layer view being greyed out after reslicing gives same current layer
This fixes a very old bug in Cura where sometimes after re-slicing it would display the layer as if you've been going horizontal through the path slider, even if you never touched the horizontal path slider.
This was caused by a tracking flag in the SimulationPass, _switching_layers. This bit of state in the SimulationPass was tracking whether the user is going through the vertical layer slider (True) or the horizontal path slider (False). If False, the nozzle mesh is drawn and lower layers get drawn in a shadowy shader. The state of this flag was being updated on every render by looking at whether the previous render has the same current layer number but a different path index. If so, it changed to False, meaning that it assumes you're going through the paths on a layer and things get shadowy.
However if you slice a different object such that the number of layers stay the same (or at least the current layer) but the number of paths on a layer change (e.g. by reducing Maximum Resolution, or by loading a different model that happens to be equally tall) then it would falsely think you were going through the horizontal path slider.

This change effectively resets this state flag when any layer data is changed in the scene. So if you re-slice, it always goes back to _switching_layers = True.

The side effect is that if you were going through the paths of a layer and you re-slice, you won't end up on the same path even if the number of paths on your current layer didn't change due to the reslice. But I think that is more towards what the user would accept a re-slice to do anyway.

I decided to take a look into this bug because I'm making a script to automatically refresh the screenshots of the Settings Guide plug-in. This script frequently hits cases like this, and it's easier to fix this bug than to work around it in my script.
2021-03-06 15:48:32 +01:00
..
3MFReader Add cura: namespace before setting keys, and store the rest in um_node.metadata 2021-02-08 17:37:38 +01:00
3MFWriter Add cura: namespace before setting keys, and store the rest in um_node.metadata 2021-02-08 17:37:38 +01:00
AMFReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
CuraDrive Don't crash when cloud response is invalid JSON 2021-02-04 17:05:55 +01:00
CuraEngineBackend Don't take snapshot if no main window present. 2021-01-29 07:59:54 +01:00
CuraProfileReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
CuraProfileWriter Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
FirmwareUpdateChecker Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
FirmwareUpdater Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
GCodeGzReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
GCodeGzWriter Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
GCodeProfileReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
GCodeReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
GCodeWriter Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
ImageReader No need for leading 0 in load-image num-fields. 2020-12-11 17:18:23 +01:00
LegacyProfileReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
MachineSettingsAction Merge branch 'master' of https://github.com/RFBomb/Cura 2021-02-04 14:46:29 +01:00
ModelChecker Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
MonitorStage Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
PerObjectSettingsTool Mark setting as disabled in perobject setting panel if it's enabled property requires it 2020-12-21 13:15:32 +01:00
PostProcessingPlugin Merge branch 'fix_postprocessing_script_roots' of https://github.com/fieldOfView/Cura 2021-02-12 16:29:28 +01:00
PrepareStage Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
PreviewStage Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
RemovableDriveOutputDevice Merge branch 'master' into fix_filtering_output_mimetypes 2020-10-30 15:31:04 +01:00
SentryLogger Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
SimulationView Fix layer view being greyed out after reslicing gives same current layer 2021-03-06 15:48:32 +01:00
SliceInfoPlugin More readable. 2020-11-03 16:12:50 +01:00
SolidView Fix lowest slice height 2021-03-03 17:05:01 +01:00
SupportEraser Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
Toolbox Catch environment errors removing temporary package files 2021-01-19 14:49:47 +01:00
TrimeshReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
UFPReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
UFPWriter Fix wrong import. 2021-01-21 09:04:39 +01:00
UltimakerMachineActions Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
UM3NetworkPrinting Merge branch 'fix_attr_addresses_not_found' of github.com:Ultimaker/Cura 2021-03-01 15:07:31 +01:00
USBPrinting Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
VersionUpgrade Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
X3DReader Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
XmlMaterialProfile Adapt to Python 3.9 API changes 2021-01-10 20:21:40 +01:00
XRayView Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00