mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-11-27 02:19:58 +08:00
Fix y and z rotation values not working, fixes #127
This commit is contained in:
parent
34b0834da4
commit
2a1df4d098
@ -80,9 +80,14 @@ export class VectorComponent extends ConfigComponent<Vector3, HTMLDivElement> {
|
||||
const elementX = UIUtil.getElementById(this._getValueId('x')) as HTMLInputElement;
|
||||
const elementY = UIUtil.getElementById(this._getValueId('y')) as HTMLInputElement;
|
||||
const elementZ = UIUtil.getElementById(this._getValueId('z')) as HTMLInputElement;
|
||||
|
||||
elementX.addEventListener('change', () => {
|
||||
this.getValue().x = parseInt(elementX.value);
|
||||
});
|
||||
elementY.addEventListener('change', () => {
|
||||
this.getValue().y = parseInt(elementY.value);
|
||||
});
|
||||
elementZ.addEventListener('change', () => {
|
||||
this.getValue().z = parseInt(elementZ.value);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user