fixed: invalid index handling
     : crash if scene ref not found
fixed: check and create index before running makeIndexedTrianglesConcave
changed: material derived from attachment, so they can be attached