Fix parameters retention/Stale customizer params #512
Reference in New Issue
Block a user
Delete Branch "fix-customizer-refresh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Irev-Dev I fixed jscad part and added 2 console.log ...
from what I am seing issue is in state management. The worker now send new parameter definitions, but when the definitions are empty it is not cleared in customizer, so that is why customizer for another model that has none stay populated...
this can easiliy be tested in jscad IDE by just removin one letter in the initial source
feel free to commit changes directly if it makes sense to do so
I think I've got a fix, works for OpenSCAD too, let me know if you're happy with this @hrgdavor.
You'll probably have to delete you're local branch and pull this branch again as I rebased on main without thinking sorry.
One other note, if you could describe the problem a little more thoroughly next time that would be appreciated. I had been putting this off because I didn't know what you were talking about. The reproduction steps were useful though for figuring it out, thanks for that.
sry, I am bit fast and furious like that :D ... just ask when unclear, I will try to explain better next time :) but no guarantees :D
nice fix, I just was not able to pinpoint where the retention was for empty params
Live now.