[prev in list] [next in list] [prev in thread] [next in thread] 

List:       osflash-sandy
Subject:    [Sandy] [sandy commit] r726
From:       bruce () zeusprod ! com (Bruce Epstein)
Date:       2008-08-25 16:43:27
Message-ID: 48B2E12F.6070407 () zeusprod ! com
[Download RAW message or body]

My initialization code is causing the "cannot invert a matrix with a 
null determinant" error to be thrown. Later, it works fine.

Is that an expected aspect of startup of the scene? r am I doing 
something wrong that I should fix?

Bruce

codesite-noreply at google.com wrote:
> Author: makc.the.great
> Date: Sat Aug 16 14:38:04 2008
> New Revision: 726
>
> Modified:
>     trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as
>
> Log:
> throwing error instead of tracing it allows to see stack trace
>
> Modified: trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as
> ==============================================================================
> --- trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as	(original)
> +++ trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as	Sat Aug 16  
> 14:38:04 2008
> @@ -724,7 +724,7 @@
>   			var d:Number = det();
>   			if( Math.abs(d) < 0.001 )
>   			{
> -				trace ("Warning: cannot invert a matrix with a null determinant");
> +				throw "cannot invert a matrix with a null determinant";
>   				return;
>   			}
>   			//We use Cramer formula, so we need to devide by the determinant. We  
> prefer multiply by the inverse
>
> _______________________________________________
> Sandy mailing list
> Sandy at osflash.org
> http://osflash.org/mailman/listinfo/sandy_osflash.org
>   


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic