Commit 753c3ff3 authored by suhuiguang's avatar suhuiguang

1.粒子与物体绑定

parent 19c587fb
......@@ -334,8 +334,12 @@ class StageActuator extends Component {
userData.attachments.forEach(eid=>{
const attachModel = modelParser.get(eid);
if (attachModel){
// attachModel.node.position.set(0,10,0);
parentObj.attach(attachModel);
if (attachModel.isObjParser){//obj
parentObj.attach(attachModel);
} else {//非obj
parentObj.attach(attachModel.obj || attachModel.node);
(attachModel.obj || attachModel.node).position.set(0,10,0);
}
}
});
});
......@@ -415,6 +419,7 @@ class StageActuator extends Component {
baseObjs={baseObjs}
ref={node => this.a3dRef = node}
disabledEdit
enableModelParser
enableObjOutline
enablePen
penProps={penProps}
......
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