CAAT icon indicating copy to clipboard operation
CAAT copied to clipboard

CAAT.PathUtil.Path.applyAsPath affine transform breaks scaling

Open robboerman opened this issue 12 years ago • 0 comments

When setting a clipPath on an actor and the enableResizeEvents is set to true, actors with a clipPath get scaled twice. This is because the applyAsPath method from the clipPath transforms the renderingContext when the Actor's paintActor method already did that.

Probably this can be easily fixed by adding if (this.parent) { director.modelViewMatrix.transformRenderingContext( ctx );
}

If the path does not have a parent, don't transform the rendering context (would send in a pull request, but I already have one pending :( )

robboerman avatar Mar 11 '13 22:03 robboerman