Add Attrinput component
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class Range extends CtrlObject {
|
||||
/**
|
||||
* 坐标
|
||||
*/
|
||||
public position: number[] = [];
|
||||
public position: number[] = [0, 0, 0];
|
||||
|
||||
/**
|
||||
* 半径
|
||||
|
||||
Reference in New Issue
Block a user