POV-Ray

The Persistence of Vision Raytracer (POV-Ray).

This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.

Attached to Project: POV-Ray
Opened by Jim Holsenback - 2010-08-16
Last edited by William F Pokorny - 2016-11-07

FS#163 - no pigment warning

no warning is issued when an object/primitive has no pigment type given

Closed by  William F Pokorny
Monday, 07 November 2016, 10:46 GMT
Reason for closing:  Implemented
Additional comments about closing:  

Testing with this simple code:
#declare Texture00 = texture {

  pigment { }
  finish { Finish00 }

}
get the following warning with 3.7.0 and 3.7.1 as caught by the parser:

File 'test.pov' line 2: Parse Warning: Pigment type unspecified or not 1st item.

Admin
Christoph Lipka commented on Thursday, 19 August 2010, 15:18 GMT

Jim, could you please be more specific about the error details? Some sample code might come in handy here.

Thorsten Fröhlich commented on Thursday, 19 August 2010, 15:21 GMT

The issue is a TODO in line 345 of pigment.cpp.

Thorsten Fröhlich commented on Thursday, 19 August 2010, 15:24 GMT

To be more specific, the issue for the TODO is that there is no line number associated with the warning as it is in a post processing function. So the line number needs to be passed around, then the warning can be re-enabled in a meaningful way. Previously the line number was a global variable, and hence getting this information was no big deal. A possible solution is to move the warning to the parser code directly, and look for a pigment after an object has been fully processed. If this is simpler - no idea. Either way, it was non-trivial, so when converting the code to multi-threading, I left this out initially.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing