POV-Ray : Newsgroups : povray.bugreports : No line # given for No_Pigment Warning Server Time
23 Dec 2024 03:35:41 EST (-0500)
  No line # given for No_Pigment Warning (Message 1 to 1 of 1)  
From: Ken
Subject: No line # given for No_Pigment Warning
Date: 20 Dec 1999 11:48:40
Message: <385e5de8@news.povray.org>
Dec 20, 1999


  In POV-Ray for Windows v3.1 when an object has no pigment specified the
program issues a warning to that effect but it does not give a line number
where the error occurs in the scene file. This lack of a line number makes
it difficult to track down where in the scene file the error occurs and
can be very time consuming to fix. This is especially true where an object
with no pigment is used in deeply nested CSG operations or comes from a
secondary include file.


The warning message itself can easily be generated with a single object
statement:   box{-1,1}


 Ron Parker offered this possible work around -

 It's a little harder to fix than one might think. The warning is printed in
post_pigment, which is called when the object finishes parsing,  potentially
several lines after the texture is parsed. Still, we should at least be able
to get the line number of the end of the relevant object declaration.


Ken Tyler


Post a reply to this message

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