Skip to content

Commit

Permalink
fix: update transfer function points in JSON in all cases (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
seankmartin authored May 29, 2024
1 parent f805b54 commit e7a19f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgl/shader_ui_controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ export class TrackableTransferFunctionParameters extends TrackableValue<Transfer
// to the control points in the trackable value.
const defaultValueCopy = copyTransferFunctionParameters(defaultValue);
super(defaultValueCopy, (obj) =>
parseTransferFunctionParameters(obj, dataType, defaultValue),
parseTransferFunctionParameters(obj, dataType, defaultValueCopy),
);
}

Expand Down

0 comments on commit e7a19f5

Please sign in to comment.