|
|
@ -21,7 +21,7 @@ export class TemplateStretchGripAction extends TemplateMoveAction
|
|
|
|
super._Update(dist);
|
|
|
|
super._Update(dist);
|
|
|
|
for (let { entity, indexs } of this.EntityStretchPointMap)
|
|
|
|
for (let { entity, indexs } of this.EntityStretchPointMap)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (entity && entity.Object)
|
|
|
|
if (entity?.Object)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let ent = entity.Object as Entity;
|
|
|
|
let ent = entity.Object as Entity;
|
|
|
|
ent.MoveStretchPoints(indexs, this._CacheMoveVector);
|
|
|
|
ent.MoveStretchPoints(indexs, this._CacheMoveVector);
|
|
|
@ -41,7 +41,7 @@ export class TemplateStretchGripAction extends TemplateMoveAction
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let entity = file.ReadObjectId();
|
|
|
|
let entity = file.ReadObjectId();
|
|
|
|
let indexs = file.Read();
|
|
|
|
let indexs = file.Read();
|
|
|
|
this.EntityStretchPointMap.push({ entity, indexs });
|
|
|
|
if (entity) this.EntityStretchPointMap.push({ entity, indexs });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//对象将自身数据写入到文件.
|
|
|
|
//对象将自身数据写入到文件.
|
|
|
|