mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
This commit is contained in:
parent
ef514d0e6b
commit
1b6b803a20
61 changed files with 120 additions and 118 deletions
|
|
@ -1914,7 +1914,11 @@ void ParticleEmitter::copyToVB( const Point3F &camPos, const LinearColorF &ambie
|
|||
{
|
||||
SortParticle* partPtr = orderedVector.address();
|
||||
for (U32 i = 0; i < n_parts - 1; i++, partPtr++, buffPtr -= 4)
|
||||
setupRibbon(partPtr->p, partPtr++->p, partPtr--->p, camPos, ambientColor, buffPtr);
|
||||
{
|
||||
SortParticle* part = partPtr;
|
||||
partPtr++;
|
||||
setupRibbon(part->p, partPtr->p, partPtr->p, camPos, ambientColor, buffPtr);
|
||||
}
|
||||
}
|
||||
// do unsorted-oriented particles
|
||||
else
|
||||
|
|
@ -1933,7 +1937,11 @@ void ParticleEmitter::copyToVB( const Point3F &camPos, const LinearColorF &ambie
|
|||
{
|
||||
SortParticle* partPtr = orderedVector.address();
|
||||
for (U32 i = 0; i < n_parts - 1; i++, partPtr++, buffPtr += 4)
|
||||
setupRibbon(partPtr->p, partPtr++->p, partPtr--->p, camPos, ambientColor, buffPtr);
|
||||
{
|
||||
SortParticle* part = partPtr;
|
||||
partPtr++;
|
||||
setupRibbon(part->p, partPtr->p, partPtr->p, camPos, ambientColor, buffPtr);
|
||||
}
|
||||
}
|
||||
// do unsorted-oriented particles
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue