POV-Ray : Newsgroups : povray.bugreports : #declare problems : #declare problems Server Time
23 Jun 2024 14:56:03 EDT (-0400)
  #declare problems  
From: Dean Wilson
Date: 8 Jun 1999 19:25:42
Message: <375da676@news.povray.org>
i hav been having a problem with povray-3.1 it seems that once
something is declared it connot be redefined example.

i have an oushapes.inc that has a "jetmotor" defined in it inside jetmotor
we have

                       #ifndef (flames)
                       #declare flames = true ;
                       #else   #end
                         #if (flames=true )  object {exhaust scale 5
translate -13.9*x}
                             #else
                            #end

this is a the tail end of a union. Now when i do


#declare flames = false

object { jetmotor rotate <0,-90,0> scale .8 translate <0,0,-75>  }

the flames are always on unless i declare flames before including ourshapes
then the flames are always off.
this setup was working with pov-3.0, Additionally i have pov-3.1e for linux
and get the same results.
the question is is this the new behavior or did i really find a problem. it
acts to me as if the flames label is treated as a const and not changeable
after declaration?



Dean Wilson  me### [at] speedbroscom


thanks


Post a reply to this message

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