Cleanup: remove deprecated old Lamp.shadspotsize from code.

Was not used anymore, except in Collada import/export, but without any conversion code.
Suggested by Brecht in comments of D59.
This commit is contained in:
2013-11-30 22:05:38 +01:00
parent e3ee0b1d38
commit 69e9927b6c
4 changed files with 2 additions and 5 deletions

View 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;

View 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));

View 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);

View 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;