kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

[Away3D Lite] ColorMaterial uses random when trying set to black. #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The ColorMaterial will use a random color if you pass in 0 as the color. 
Change:

    _color = Cast.color(color || "random");

to:

    _color = color==null ? Cast.color("random") : color;

Original issue reported on code.google.com by mirsw...@gmail.com on 26 Mar 2010 at 10:00

GoogleCodeExporter commented 8 years ago

Original comment by katopz on 27 Mar 2010 at 3:19

GoogleCodeExporter commented 8 years ago

Original comment by katopz on 1 Apr 2010 at 12:22