Browse files

added a clearCache() method to WhiteShadingBitmapMaterial

git-svn-id: https://away3d.googlecode.com/svn/trunk/fp9/Away3D@2676 6da1ee2c-932f-0410-8bb4-73b2b089c45a
  • Loading branch information...
1 parent 075b042 commit 5bba0d7c71f47055a799bf4ee877b86f383b0a2a @rob-bateman rob-bateman committed Jul 4, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/away3d/materials/WhiteShadingBitmapMaterial.as
View
9 src/away3d/materials/WhiteShadingBitmapMaterial.as
@@ -139,5 +139,14 @@ package away3d.materials
cache = CacheStore.whiteShadingCache[_bitmap];
shininess = ini.getNumber("shininess", 20);
+ }
+
+ /**
+ * Clear the cached bitmaps used for shading
+ */
+ public function clearCache():void
+ {
+ CacheStore.whiteShadingCache[_bitmap] = new Dictionary(true);
+ cache = CacheStore.whiteShadingCache[_bitmap];
}
}

0 comments on commit 5bba0d7

Please sign in to comment.