[Sandy] [sandy commit] r932 - trunk/sandy/as3/trunk/src/sandy/primitive
Niel Drummond
niel.drummond at grumpytoad.org
Tue Mar 3 22:13:39 PST 2009
codesite-noreply at google.com wrote:
> Author: cyanescent
> Date: Tue Mar 3 22:08:33 2009
> New Revision: 932
>
> Modified:
> trunk/sandy/as3/trunk/src/sandy/primitive/Torus.as
>
> Log:
> DEFAULT assignment is ignored if the constructor has default parameters.
we modified this in the haxe version and thought it would be best to unify.
- Niel
>
>
>
> Modified: trunk/sandy/as3/trunk/src/sandy/primitive/Torus.as
> ==============================================================================
>
> --- trunk/sandy/as3/trunk/src/sandy/primitive/Torus.as (original)
> +++ trunk/sandy/as3/trunk/src/sandy/primitive/Torus.as Tue Mar 3
> 22:08:33 2009
> @@ -52,16 +52,6 @@
> public var segmentsH :Number;
>
> /**
> - * The default large radius for a sphere.
> - */
> - static public const DEFAULT_LARGE_RADIUS :Number = 100;
> -
> - /**
> - * The default small radius for a sphere.
> - */
> - static public const DEFAULT_SMALL_RADIUS :Number = 50;
> -
> - /**
> * The default scale for a torus texture.
> */
> static public const DEFAULT_SCALE :Number = 1;
> @@ -103,8 +93,8 @@
> // --
> this.segmentsW = Math.max( MIN_SEGMENTSW, p_nSegmentsW ||
> DEFAULT_SEGMENTSW); // Defaults to 12
> this.segmentsH = Math.max( MIN_SEGMENTSH, p_nSegmentsH ||
> DEFAULT_SEGMENTSH); // Defaults to 8
> - this.largeRadius = p_nLargeRadius ||
> DEFAULT_LARGE_RADIUS; // Defaults to 100
> - this.smallRadius = p_nSmallRadius ||
> DEFAULT_SMALL_RADIUS; // Defaults to 50
> + this.largeRadius = p_nLargeRadius; // Defaults to 100
> + this.smallRadius = p_nSmallRadius; // Defaults to 50
> // --
> geometry = generate();
> }
> @@ -226,4 +216,4 @@
> return "sandy.primitive.Torus";
> }
> }
> -}
> \ No newline at end of file
> +}
>
> _______________________________________________
> Sandy mailing list
> Sandy at osflash.org
> http://osflash.org/mailman/listinfo/sandy_osflash.org
More information about the Sandy
mailing list