stig-atle / io_scene_pbrt

Exporter for blender that exports the scene into pbrt's ascii file format.
59 stars 16 forks source link

Dont export objects excluded from render #32

Closed Jorgeromeu closed 2 years ago

Jorgeromeu commented 2 years ago

Currently, all objects in the scene are exported, however, blender allows you to have objects be visible in the 3D viewport but not in the render by using this toggle in the object hierarchy

image

This pull request checks if an object is marked as hide_render before including it.

stig-atle commented 2 years ago

Just wanted to thank you for taking the time to fix this and create a pull request!