Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizer settings reset on .SCAD file "Automatic Reload and Preview" #4296

Open
TheAndr0id opened this issue Jul 9, 2022 · 0 comments
Open

Comments

@TheAndr0id
Copy link

TheAndr0id commented Jul 9, 2022

This is with the latest 2021.01 release under Windows 64-bit.

I am editing the SCAD file using an external editor with "Automatic Reload and Preview" enabled under the Design menu.

About 1 save in 10(?) when the file is saved OpenSCAD will reload the file and preview as it should, but it will also reset all Customizer settings to defaults (as defined in the .SCAD file). When working on a detailed model with many settings, this is extremely annoying to have to go back and set all of the options that were being tested and/or developed.

The model view does not change, the orientation of the camera stays as it was before the save.

In the console it looks like something is being reset as the logs are continuous, then there's a break in the logs when the Customizer reset occurs, and another break after the Customizer has been manually returned to pre-reset state.

On further inspection the "Parsing design (AST generation)..." does not appear in the logs until the breaks. Maybe there's a cache somewhere that is expiring and clearing more than it should?

<Pages and pages of console entries, no breaks>
Geometries in cache: 117
Geometry cache size in bytes: 532440
CGAL Polyhedrons in cache: 82
CGAL cache size in bytes: 34459616
Compiling design (CSG Products normalization)...
Normalized tree has 550 elements!
Compile and preview finished.
Total rendering time: 0:00:00.200
 
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
Compiling design (CSG Products generation)...
Geometries in cache: 117
Geometry cache size in bytes: 532440
CGAL Polyhedrons in cache: 82
CGAL cache size in bytes: 34459616
Compiling design (CSG Products normalization)...
Normalized tree has 292 elements!
Compile and preview finished.
Total rendering time: 0:00:00.079
 
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
Compiling design (CSG Products generation)...
Geometries in cache: 117
Geometry cache size in bytes: 532440
CGAL Polyhedrons in cache: 82
CGAL cache size in bytes: 34459616
Compiling design (CSG Products normalization)...
Compiling highlights (1 CSG Trees)...
Normalized tree has 285 elements!
Compile and preview finished.
Total rendering time: 0:00:00.077

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant