MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onAdd

Method onAdd

Engine/source/T3D/decal/decalData.cpp:116–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool DecalData::onAdd()
117{
118 if ( !Parent::onAdd() )
119 return false;
120
121 if (size < 0.0) {
122 Con::warnf("DecalData::onAdd: size < 0");
123 size = 0;
124 }
125
126 getSet()->addObject( this );
127
128 if( texRows > 1 || texCols > 1 )
129 reloadRects();
130
131 return true;
132}
133
134void DecalData::onRemove()
135{

Callers

nothing calls this directly

Calls 2

warnfFunction · 0.50
addObjectMethod · 0.45

Tested by

no test coverage detected