mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
fixes missing step argument
step argument was not provided in factory.js
This commit is contained in:
parent
586c0607b5
commit
303cb10e07
@ -37,12 +37,18 @@ define([
|
|||||||
|
|
||||||
if (common.isNumber(arguments[2]) && common.isNumber(arguments[3])) {
|
if (common.isNumber(arguments[2]) && common.isNumber(arguments[3])) {
|
||||||
|
|
||||||
// Has min and max.
|
// Has min and max.
|
||||||
return new NumberControllerSlider(object, property, arguments[2], arguments[3]);
|
if (common.isNumber(arguments[4])) // has step
|
||||||
|
return new NumberControllerSlider(object, property, arguments[2], arguments[3], arguments[4]);
|
||||||
|
else
|
||||||
|
return new NumberControllerSlider(object, property, arguments[2], arguments[3]);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return new NumberControllerBox(object, property, { min: arguments[2], max: arguments[3] });
|
if (common.isNumber(arguments[4]))
|
||||||
|
return new NumberControllerBox(object, property, { min: arguments[2], max: arguments[3], step: arguments[4] });
|
||||||
|
else
|
||||||
|
return new NumberControllerBox(object, property, { min: arguments[2], max: arguments[3] });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user