mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 02:54:43 +00:00
Merge pull request #470 from Kienz/visiblePropFix
Bugfix fabric.PathGroup if object is not visible
This commit is contained in:
commit
c366e1d184
2 changed files with 5 additions and 1 deletions
|
|
@ -628,7 +628,7 @@
|
|||
*/
|
||||
render: function(ctx, noTransform) {
|
||||
|
||||
// do not render if width or height are zeros
|
||||
// do not render if width/height are zeros or object is not visible
|
||||
if (this.width === 0 || this.height === 0 || !this.visible) return;
|
||||
|
||||
ctx.save();
|
||||
|
|
|
|||
|
|
@ -65,6 +65,10 @@
|
|||
* @param {CanvasRenderingContext2D} ctx Context to render this instance on
|
||||
*/
|
||||
render: function(ctx) {
|
||||
|
||||
// do not render if object is not visible
|
||||
if (!this.visible) return;
|
||||
|
||||
ctx.save();
|
||||
|
||||
var m = this.transformMatrix;
|
||||
|
|
|
|||
Loading…
Reference in a new issue