Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Libraries/ParameterMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ function parameter_set_value(name, value) {
// set main input
param.value = value

// A drop down ignores text that is not one of its options, try the number, e.g. 1.000000 for 1
if ((param.tagName === "SELECT") && (param.selectedIndex < 0)) {
param.value = parseFloat(value)
}

// Set bits in bitmask
let items = param.parentElement.querySelectorAll("input[type=checkbox]")
for (let item of items) {
Expand Down
Loading