Commit 53faf713 authored by rockyl's avatar rockyl

增加affectChildren属性,矩阵是否影响子节点

parent a2690009
...@@ -209,7 +209,7 @@ export default class Transform extends ScillaComponent { ...@@ -209,7 +209,7 @@ export default class Transform extends ScillaComponent {
const parentTransform: Transform = entity.parent.getComponent(Transform); const parentTransform: Transform = entity.parent.getComponent(Transform);
if (parentTransform) { if (parentTransform) {
this._renderAlpha = parentTransform._renderAlpha * this.alpha; this._renderAlpha = parentTransform._renderAlpha * this.alpha;
_globalMatrix.concat(parentTransform.getMatrix(false, false, true)); _globalMatrix.concat(parentTransform.getMatrix(false, false));
} else { } else {
this._renderAlpha = this.alpha; this._renderAlpha = this.alpha;
} }
......
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