Blender Git Loki

Git Commits -> Revision 097a926

Revision 097a926 by Nathan Letwory (master)
October 14, 2010, 09:40 (GMT)
Fix [#24201] COLLADA Exporter: Light source energy incorrect

lamp->energy and lamp->distance are now taken in account by calculating
the constant, linear and quadratic attenuations based on this.

The import tries to do the reverse.

Note: this will work only properly for lamps that have att1 and att2 set to
1.0 or 0.0, other lamptypes won't import correctly again.

Commit Details:

Full Hash: 097a926d943c3b482305c295c60eaff7a85600d8
SVN Revision: 32468
Parent Commit: 3809296
Lines Changed: +79, -15

2 Modified Paths:

/source/blender/collada/DocumentImporter.cpp (+39, -8) (Diff)
/source/blender/collada/LightExporter.cpp (+40, -7) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021