Mesh Batch Cache: Fix crash caused by rB3cbf2462391c
[blender.git] / source / blender / collada / LightExporter.h
index 2e67e8cd1689475aa894c47795a1b44c440336d8..045ccfe1ce8eb7df9fe1afb51aecc35bf50e0b7f 100644 (file)
 #include "COLLADASWStreamWriter.h"
 #include "COLLADASWLibraryLights.h"
 
-#include "DNA_lamp_types.h"
+#include "DNA_light_types.h"
 #include "DNA_object_types.h"
 #include "DNA_scene_types.h"
 
 #include "ExportSettings.h"
 
-class LightsExporter: COLLADASW::LibraryLights
-{
-public:
-       LightsExporter(COLLADASW::StreamWriter *sw, const ExportSettings *export_settings);
-       void exportLights(Scene *sce);
-       void operator()(Object *ob);
-private:
-       bool exportBlenderProfile(COLLADASW::Light &cla, Lamp *la);
-       const ExportSettings *export_settings;
+class LightsExporter : COLLADASW::LibraryLights {
+ public:
+  LightsExporter(COLLADASW::StreamWriter *sw, BCExportSettings &export_settings);
+  void exportLights(Scene *sce);
+  void operator()(Object *ob);
+
+ private:
+  bool exportBlenderProfile(COLLADASW::Light &cla, Light *la);
+  BCExportSettings &export_settings;
 };
 
 #endif