mirror of https://github.com/axmolengine/axmol.git
replace setAdditionnalTransform()
This commit is contained in:
parent
5ce4fbe6df
commit
7efd4c2df6
|
@ -519,7 +519,16 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setAdditionalTransform(&nodedata->transform);
|
Vec3 pos;
|
||||||
|
Quaternion qua;
|
||||||
|
Vec3 scale;
|
||||||
|
nodedata->transform.decompose(&scale, &qua, &pos);
|
||||||
|
setPosition3D(pos);
|
||||||
|
setRotationQuat(qua);
|
||||||
|
setScaleX(scale.x);
|
||||||
|
setScaleY(scale.y);
|
||||||
|
setScaleZ(scale.z);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue