mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Remove unneeded double-initialization of the vars.
This commit is contained in:
parent
d9c5670e93
commit
62006e8b3c
4 changed files with 1 additions and 4 deletions
|
|
@ -99,7 +99,6 @@ DebrisData::DebrisData()
|
||||||
friction = 0.2f;
|
friction = 0.2f;
|
||||||
numBounces = 0;
|
numBounces = 0;
|
||||||
bounceVariance = 0;
|
bounceVariance = 0;
|
||||||
minSpinSpeed = maxSpinSpeed = 0.0;
|
|
||||||
staticOnMaxBounce = false;
|
staticOnMaxBounce = false;
|
||||||
explodeOnMaxBounce = false;
|
explodeOnMaxBounce = false;
|
||||||
snapOnMaxBounce = false;
|
snapOnMaxBounce = false;
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ void ProcessedFFMaterial::_initPassStateBlock( RenderPassData *rpd, GFXStateBloc
|
||||||
result.blendDefined = true;
|
result.blendDefined = true;
|
||||||
result.blendEnable = true;
|
result.blendEnable = true;
|
||||||
result.blendSrc = GFXBlendOne;
|
result.blendSrc = GFXBlendOne;
|
||||||
result.blendSrc = GFXBlendOne;
|
result.blendDest = GFXBlendZero;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is here for generic FF shader fallbacks.
|
// This is here for generic FF shader fallbacks.
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,6 @@ void RenderBinManager::internalAddElement(RenderInst* inst)
|
||||||
mElementList.increment();
|
mElementList.increment();
|
||||||
MainSortElem &elem = mElementList.last();
|
MainSortElem &elem = mElementList.last();
|
||||||
elem.inst = inst;
|
elem.inst = inst;
|
||||||
elem.key = elem.key2 = 0;
|
|
||||||
|
|
||||||
elem.key = inst->defaultKey;
|
elem.key = inst->defaultKey;
|
||||||
elem.key2 = inst->defaultKey2;
|
elem.key2 = inst->defaultKey2;
|
||||||
|
|
|
||||||
|
|
@ -371,7 +371,6 @@ Marker::Marker()
|
||||||
mTypeMask |= MarkerObjectType;
|
mTypeMask |= MarkerObjectType;
|
||||||
|
|
||||||
mSeqNum = 0;
|
mSeqNum = 0;
|
||||||
mSmoothingType = SmoothingTypeLinear;
|
|
||||||
mMSToNext = 1000;
|
mMSToNext = 1000;
|
||||||
mSmoothingType = SmoothingTypeSpline;
|
mSmoothingType = SmoothingTypeSpline;
|
||||||
mKnotType = KnotTypeNormal;
|
mKnotType = KnotTypeNormal;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue