1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Only apply height correction to human avatars.

This commit is contained in:
Skoader
2012-12-01 23:16:48 -05:00
committed by Adam Johnson
parent a1814c9dca
commit d06ba6362c
4 changed files with 15 additions and 9 deletions

View File

@ -1993,7 +1993,7 @@ bool plArmatureMod::ValidatePhysics()
return false;
if (!fController)
fController = plPhysicalControllerCore::Create(GetTarget(0)->GetKey(), fPhysHeight, fPhysWidth);
fController = plPhysicalControllerCore::Create(GetTarget(0)->GetKey(), fPhysHeight, fPhysWidth, (fBodyType == kBoneBaseMale || fBodyType == kBoneBaseFemale));
if (fController)
{

View File

@ -150,7 +150,7 @@ public:
float GetHeight() const { return fHeight; }
// Create a new controller instance - Implemented in the physics system
static plPhysicalControllerCore* Create(plKey ownerSO, float height, float radius);
static plPhysicalControllerCore* Create(plKey ownerSO, float height, float radius, bool human);
protected:
virtual void IHandleEnableChanged() = 0;