The problem was that setQuad was being called in the second constructor
after updateRenderState in the third constructor, so the quad's render state didn't include the alpha state. I changed it so that updateRenderState is called in setQuad. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3859 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -75,8 +75,6 @@ public class FadeInOutEffect extends Node
|
||||
|
||||
setRenderQueueMode(Renderer.QUEUE_ORTHO);
|
||||
setZOrder(overUI ? -1 : 1);
|
||||
|
||||
updateRenderState();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,6 +85,7 @@ public class FadeInOutEffect extends Node
|
||||
attachChild(quad);
|
||||
quad.setDefaultColor(_color);
|
||||
quad.setRenderState(_astate);
|
||||
quad.updateRenderState();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user