diff options
| author | Joe Ludwig <[email protected]> | 2013-07-17 18:26:59 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-07-17 18:26:59 -0700 |
| commit | e16ea21dc8a710237ade8413207f58d403c616a3 (patch) | |
| tree | 85dcfbda9881e4e022dedafefbc2727e2fd2aa59 /mp/src/game/client/glow_outline_effect.cpp | |
| parent | Merge pull request #36 from AnAkIn1/fogplayerparams_fix (diff) | |
| download | source-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.tar.xz source-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.zip | |
* Added support for building shaders in your mod
* Added nav mesh support
* fixed many warnings and misc bugs
* Fixed the create*projects scripts in mp
* Added a bunch of stuff to .gitignore
Diffstat (limited to 'mp/src/game/client/glow_outline_effect.cpp')
| -rw-r--r-- | mp/src/game/client/glow_outline_effect.cpp | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/mp/src/game/client/glow_outline_effect.cpp b/mp/src/game/client/glow_outline_effect.cpp index 600b15d7..a6d80b7f 100644 --- a/mp/src/game/client/glow_outline_effect.cpp +++ b/mp/src/game/client/glow_outline_effect.cpp @@ -312,37 +312,20 @@ void CGlowObjectManager::ApplyEntityGlowEffects( const CViewSetup *pSetup, int n void CGlowObjectManager::GlowObjectDefinition_t::DrawModel()
{
- C_BaseEntity *pEntity = m_hEntity.Get();
- if ( !pEntity )
- return;
-
- if ( pEntity->GetMoveParent() != NULL )
+ if ( m_hEntity.Get() )
{
- C_BaseAnimating *pBaseAnimating = pEntity->GetBaseAnimating();
- if ( pBaseAnimating )
- {
- pBaseAnimating->InvalidateBoneCache();
- }
- }
+ m_hEntity->DrawModel( STUDIO_RENDER );
+ C_BaseEntity *pAttachment = m_hEntity->FirstMoveChild();
- pEntity->DrawModel( STUDIO_RENDER );
-
- C_BaseEntity *pAttachment = pEntity->FirstMoveChild();
- while ( pAttachment != NULL )
- {
- if ( !g_GlowObjectManager.HasGlowEffect( pAttachment ) && pAttachment->ShouldDraw() )
+ while ( pAttachment != NULL )
{
- C_BaseAnimating *pBaseAnimating = pAttachment->GetBaseAnimating();
- if ( pBaseAnimating )
+ if ( !g_GlowObjectManager.HasGlowEffect( pAttachment ) && pAttachment->ShouldDraw() )
{
- pBaseAnimating->InvalidateBoneCache();
+ pAttachment->DrawModel( STUDIO_RENDER );
}
-
- pAttachment->DrawModel( STUDIO_RENDER );
+ pAttachment = pAttachment->NextMovePeer();
}
-
- pAttachment = pAttachment->NextMovePeer();
}
}
-#endif // GLOWS_ENABLE
+#endif // GLOWS_ENABLE
\ No newline at end of file |