Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit a1c955a

Browse files
committed
Fix rendering of ints in the parameters view
1 parent be2954f commit a1c955a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/elements/ParametersViewElement.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ function propsToElements(entity, elements, props, entities) {
5959
// For number/int types
6060
let min = 'min' in prop ? prop.min : -Infinity;
6161
let max = 'max' in prop ? prop.max : Infinity;
62-
let step = 'step' in prop ? prop.step : 0.01;
62+
let step = 'step' in prop ? prop.step :
63+
type === 'int' ? 1 : 0.01;
6364
let precision = 'precision' in prop ? prop.precision :
64-
type === 'int' ? 1 : 3;
65+
type === 'int' ? 0 : 3;
6566

6667
// For object types (geometry, material, texture)
6768
let associatedData = {};

0 commit comments

Comments
 (0)