Cleanup: remove deprecated old Lamp.shadspotsize from code.
authorBastien Montagne <montagne29@wanadoo.fr>
Sat, 30 Nov 2013 21:05:38 +0000 (22:05 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 1 Dec 2013 10:25:11 +0000 (11:25 +0100)
Was not used anymore, except in Collada import/export, but without any conversion code.
Suggested by Brecht in comments of D59.

source/blender/blenkernel/intern/lamp.c
source/blender/collada/DocumentImporter.cpp
source/blender/collada/LightExporter.cpp
source/blender/makesdna/DNA_lamp_types.h

index 903b032e080e3dc4ce1d74beb1493258b78eb01f..2bd521ab04403282aa562143682fb4f83de4aece 100644 (file)
@@ -70,7 +70,6 @@ Lamp *BKE_lamp_add(Main *bmain, const char *name)
        la->bufsize = 512;
        la->clipsta = 0.5f;
        la->clipend = 40.0f;
-       la->shadspotsize = 45.0f;
        la->samp = 3;
        la->bias = 1.0f;
        la->soft = 3.0f;
index 79c725166f68df3af3152260b9b840d00eb762e9..9877067544469042411cfe51440290cacba5efb3 100644 (file)
@@ -1134,7 +1134,6 @@ bool DocumentImporter::writeLight(const COLLADAFW::Light *light)
                et->setData("falloff_type", &(lamp->falloff_type));
                et->setData("clipsta", &(lamp->clipsta));
                et->setData("clipend", &(lamp->clipend));
-               et->setData("shadspotsize", &(lamp->shadspotsize));
                et->setData("bias", &(lamp->bias));
                et->setData("soft", &(lamp->soft));
                et->setData("compressthresh", &(lamp->compressthresh));
index af13d61a36846f7487af259decdcf85b54f4f85c..a277963b8834488d2ef215a33dc9db53163237b7 100644 (file)
@@ -156,7 +156,6 @@ bool LightsExporter::exportBlenderProfile(COLLADASW::Light &cla, Lamp *la)
        cla.addExtraTechniqueParameter("blender", "falloff_type", la->falloff_type);
        cla.addExtraTechniqueParameter("blender", "clipsta", la->clipsta);
        cla.addExtraTechniqueParameter("blender", "clipend", la->clipend);
-       cla.addExtraTechniqueParameter("blender", "shadspotsize", la->shadspotsize);
        cla.addExtraTechniqueParameter("blender", "bias", la->bias);
        cla.addExtraTechniqueParameter("blender", "soft", la->soft);
        cla.addExtraTechniqueParameter("blender", "compressthresh", la->compressthresh);
index a1b3d4265d37a45126f599a5c1bf612acebb99f0..b7aae005e3b403ae4298f730465b1e36b753521f 100644 (file)
@@ -65,8 +65,8 @@ typedef struct Lamp {
        short falloff_type;
        short pad2;
        
-       float clipsta, clipend, shadspotsize;
-       float bias, soft, compressthresh, bleedbias, pad5[2];
+       float clipsta, clipend;
+       float bias, soft, compressthresh, bleedbias, pad5;
        short bufsize, samp, buffers, filtertype;
        char bufflag, buftype;