From 4ff80b42eeec557a343ed9ea493edad8646b796f Mon Sep 17 00:00:00 2001 From: codeanticode Date: Fri, 22 Feb 2013 15:22:30 -0500 Subject: [PATCH] Fixes #1641 --- android/core/src/processing/opengl/PShapeOpenGL.java | 5 +++++ core/src/processing/opengl/PShapeOpenGL.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/android/core/src/processing/opengl/PShapeOpenGL.java b/android/core/src/processing/opengl/PShapeOpenGL.java index dac2201d8..e615d04dd 100644 --- a/android/core/src/processing/opengl/PShapeOpenGL.java +++ b/android/core/src/processing/opengl/PShapeOpenGL.java @@ -515,6 +515,9 @@ public class PShapeOpenGL extends PShape { PShape.copyPath(src, dest); } dest.setName(src.getName()); + dest.width = src.width; + dest.height = src.height; + dest.depth = src.depth; return dest; } @@ -536,6 +539,8 @@ public class PShapeOpenGL extends PShape { PShape.copyPath(src, dest); } dest.setName(src.getName()); + dest.width = src.width; + dest.height = src.height; return dest; } diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index dac2201d8..e615d04dd 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -515,6 +515,9 @@ public class PShapeOpenGL extends PShape { PShape.copyPath(src, dest); } dest.setName(src.getName()); + dest.width = src.width; + dest.height = src.height; + dest.depth = src.depth; return dest; } @@ -536,6 +539,8 @@ public class PShapeOpenGL extends PShape { PShape.copyPath(src, dest); } dest.setName(src.getName()); + dest.width = src.width; + dest.height = src.height; return dest; }