POV-Ray : Newsgroups : povray.general : Is this a bug? : Re: Is this a bug? Server Time
15 Jun 2024 03:46:06 EDT (-0400)
  Re: Is this a bug?  
From: Ger
Date: 18 Jan 2016 14:16:16
Message: <569d3a00$1@news.povray.org>
Jaime Vives Piqueres wrote:

>    Sorry, I see now that indeed you tried, and that was the original
> question: why it works outside the macro but not inside.

Correct.
> 
>    Anyhow, I did a test putting the macro in a separate include file,
> and now at least the error message isn't random anymore: it's always
> "Attempt to access uninitialized array element" on this line:

That's the error I started out with.

> 
>    #declare CFS[Count] = CFS[Count-1];
> 
>    But as data.inc is included and has valid #declares, that cannot be
> the real reason...
> 
That's how I started out. I like certain things kept together in separate 
include files, and since I don't always use the CenterOfMass calculations 
it's a perfect candidate for the #if(CenterOfMass) clause.
> 
> --
> jaime

-- 

Ger


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.