Skip to content

Commit

Permalink
UPBGE: Rename DefaultFilter to DynamicFilter.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Jul 21, 2018
1 parent 7a791c9 commit 1851639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/gameengine/Physics/Bullet/CcdPhysicsController.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ struct CcdConstructionInfo {
*/
enum CollisionFilterGroups
{
DefaultFilter = 1,
DynamicFilter = 1,
StaticFilter = 2,
KinematicFilter = 4,
DebrisFilter = 8,
SensorFilter = 16,
CharacterFilter = 32,
AllFilter = DefaultFilter | StaticFilter | KinematicFilter | DebrisFilter | SensorFilter | CharacterFilter,
AllFilter = DynamicFilter | StaticFilter | KinematicFilter | DebrisFilter | SensorFilter | CharacterFilter,
};

CcdConstructionInfo()
Expand Down Expand Up @@ -268,7 +268,7 @@ struct CcdConstructionInfo {
m_bSensor(false),
m_bCharacter(false),
m_bGimpact(false),
m_collisionFilterGroup(DefaultFilter),
m_collisionFilterGroup(DynamicFilter),
m_collisionFilterMask(AllFilter),
m_collisionGroup(0xFFFF),
m_collisionMask(0xFFFF),
Expand Down
2 changes: 1 addition & 1 deletion source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3078,7 +3078,7 @@ void CcdPhysicsEnvironment::ConvertObject(BL_SceneConverter& converter, KX_GameO

ci.m_collisionFilterGroup =
(isbulletsensor) ? short(CcdConstructionInfo::SensorFilter) :
(isbulletdyna) ? short(CcdConstructionInfo::DefaultFilter) :
(isbulletdyna) ? short(CcdConstructionInfo::DynamicFilter) :
(isbulletchar) ? short(CcdConstructionInfo::CharacterFilter) :
short(CcdConstructionInfo::StaticFilter);
ci.m_collisionFilterMask =
Expand Down

0 comments on commit 1851639

Please sign in to comment.