mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Phase 2: #ifdef for Zodiacs and particles
This commit is contained in:
parent
0c65f9ee8e
commit
b8f722e2f9
7 changed files with 38 additions and 13 deletions
|
|
@ -58,8 +58,9 @@
|
|||
using namespace Torque;
|
||||
|
||||
extern bool gEditingMission;
|
||||
|
||||
#ifdef TORQUE_AFX_ENABLED
|
||||
#include "afx/ce/afxZodiacMgr.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_CO_NETOBJECT_V1(TSStatic);
|
||||
|
||||
|
|
@ -136,7 +137,9 @@ TSStatic::TSStatic()
|
|||
mHasGradients = false;
|
||||
mInvertGradientRange = false;
|
||||
mGradientRangeUser.set(0.0f, 180.0f);
|
||||
#ifdef TORQUE_AFX_ENABLED
|
||||
afxZodiacData::convertGradientRangeFromDegrees(mGradientRange, mGradientRangeUser);
|
||||
#endif
|
||||
}
|
||||
|
||||
TSStatic::~TSStatic()
|
||||
|
|
@ -721,9 +724,10 @@ void TSStatic::prepRenderImage( SceneRenderState* state )
|
|||
}
|
||||
}
|
||||
mShapeInstance->render( rdata );
|
||||
|
||||
#ifdef TORQUE_AFX_ENABLED
|
||||
if (!mIgnoreZodiacs && mDecalDetailsPtr != 0)
|
||||
afxZodiacMgr::renderPolysoupZodiacs(state, this);
|
||||
#endif
|
||||
if ( mRenderNormalScalar > 0 )
|
||||
{
|
||||
ObjectRenderInst *ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
|
||||
|
|
@ -1399,11 +1403,13 @@ void TSStatic::set_special_typing()
|
|||
|
||||
void TSStatic::onStaticModified(const char* slotName, const char*newValue)
|
||||
{
|
||||
#ifdef TORQUE_AFX_ENABLED
|
||||
if (slotName == afxZodiacData::GradientRangeSlot)
|
||||
{
|
||||
afxZodiacData::convertGradientRangeFromDegrees(mGradientRange, mGradientRangeUser);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
set_special_typing();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue