mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Visibility change as sugested by dottools
This commit is contained in:
parent
c3b1aaae5a
commit
988bd47d52
1 changed files with 5 additions and 1 deletions
|
|
@ -1773,7 +1773,11 @@ DefineEngineFunction( decalManagerEditDecal, bool, ( S32 decalID, Point3F pos, P
|
||||||
mat.getColumn( 1, &tangent );
|
mat.getColumn( 1, &tangent );
|
||||||
|
|
||||||
//if everything is unchanged just do nothing and return "everything is ok"
|
//if everything is unchanged just do nothing and return "everything is ok"
|
||||||
if ( pos.equal(decalInstance->mPosition) && normal.equal(decalInstance->mNormal) && tangent.equal(decalInstance->mTangent) && mFabs( decalInstance->mSize - (decalInstance->mDataBlock->size * decalScale) ) < POINT_EPSILON ) return true;
|
if ( pos.equal(decalInstance->mPosition) &&
|
||||||
|
normal.equal(decalInstance->mNormal) &&
|
||||||
|
tangent.equal(decalInstance->mTangent) &&
|
||||||
|
mFabs( decalInstance->mSize - (decalInstance->mDataBlock->size * decalScale) ) < POINT_EPSILON )
|
||||||
|
return true;
|
||||||
|
|
||||||
decalInstance->mPosition = pos;
|
decalInstance->mPosition = pos;
|
||||||
decalInstance->mNormal = normal;
|
decalInstance->mNormal = normal;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue