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.
FS#335 - macro works in variable but not in array
Attached to Project:
POV-Ray
Opened by Mike H (SharkD) - Saturday, 06 February 2016, 02:01 GMT
Last edited by William F Pokorny (wfpokorny) - Tuesday, 09 May 2017, 15:37 GMT
Opened by Mike H (SharkD) - Saturday, 06 February 2016, 02:01 GMT
Last edited by William F Pokorny (wfpokorny) - Tuesday, 09 May 2017, 15:37 GMT
|
DetailsThis doesn’t work:
#declare pavement_object = array[2] object {trash_can_macro() scale 3/4 translate -x * 1/2}, object {potted_plant_macro(_CT_rand2) scale 3/4 scale 3/2 translate -x * 1/2} } This does work:
#declare trash_can_object = object {trash_can_macro()}; object {trash_can_object scale 3/4 translate -x * 1/2}, object {potted_plant_object scale 3/4 scale 3/2 translate -x * 1/2} }
Logically, I cannot see a reason for this to be so. |
This task depends upon
Now tracked on github as issue #289.