Permalink
Browse files

Fixed issues with geometry validation in primitives.

  • Loading branch information...
1 parent 1c3df57 commit 56852df1f3936472249d377e89ba860ba9bce36a @richardolsson richardolsson committed Apr 7, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/away3d/primitives/PrimitiveBase.as
@@ -51,6 +51,26 @@ package away3d.primitives
return super.clone();
}
+
+ /**
+ * @inheritDoc
+ */
+ override public function scale(scale:Number):void
+ {
+ if (_geomDirty) updateGeometry();
+
+ super.scale(scale);
+ }
+
+ /**
+ * @inheritDoc
+ */
+ override public function scaleUV(scaleU:Number=1, scaleV:Number=1):void
+ {
+ if (_uvDirty) updateUVs();
+
+ super.scaleUV(scaleU, scaleV);
+ }
/**
* Builds the primitive's geometry when invalid. This method should not be called directly. The calling should

0 comments on commit 56852df

Please sign in to comment.