Commit 87b32674 authored by suhuiguang's avatar suhuiguang

1.同步设计器代码,控制粒子的旋转缩放等

parent 8f361d08
......@@ -105,7 +105,13 @@ class StageActuator extends Component {
return dataItem;
}, fmtData => {
if (fmtData.type === ELEMENT_TYPE.PARTICLE) {
this.addParticle({ userData: fmtData, position: fmtData.basicAttr['position'],data: particles[fmtData.reference] });
this.addParticle({
userData: fmtData,
position: fmtData.basicAttr.position,
rotation: fmtData.basicAttr.rotation,
scale: fmtData.basicAttr.scale,
data: particles[fmtData.reference]
});
}
if (fmtData.type === ELEMENT_TYPE.PEN) {
this.a3dRef.newPen({ ...routePath[fmtData.reference],userData: fmtData });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment