Add Attrinput component

This commit is contained in:
2022-03-07 17:47:55 +08:00
parent 71e17b2f5a
commit f3ba3b6150
9 changed files with 162 additions and 66 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class Model extends Emitter<ModelEvent> {
public getObjectById(id: ObjectID): CtrlObject | undefined {
for (let i = 0; i < this.objectPool.length; i++) {
if (this.objectPool[i].id === id) {
if (this.objectPool[i].id.toString() === id.toString()) {
return this.objectPool[i];
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ class Range extends CtrlObject {
/**
* 坐标
*/
public position: number[] = [];
public position: number[] = [0, 0, 0];
/**
* 半径