Moguri / BlenderPanda

Blender addon for integrating Panda3D
MIT License
76 stars 11 forks source link

No need to copy lights if we support bam 6.40 or higher #4

Closed rdb closed 8 years ago

rdb commented 8 years ago

I added support for writing NodePaths to .bam in Panda3D earlier today, which means that instanced lights are now supported (assuming that the lights are below the root node of the model, which is always the case for BlenderPanda).

This change checks whether Panda supports this feature, and if so, avoids calling make_copy() on the light when writing out a .bam file.