google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.02k stars 283 forks source link

fix: update transfer function points in JSON in all cases #594

Closed seankmartin closed 1 month ago

seankmartin commented 1 month ago

Fix accidental passing of actual default value into the trackable transfer function validator function. Now correctly passes the copy of the default value to the validator.

Impact: previously if the JSON contained information about the default color, or the window, but not about the transfer function points, the points wouldn't get tracked in the JSON state correctly anymore in some cases.