mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-13 18:17:49 -04:00
Fix string usage that was broken from enabling the Max plugin build
This commit is contained in:
@ -632,11 +632,11 @@ PF_CONSOLE_CMD( Avatar_Physics, TogglePhysical, "", "Disable/enable physics on t
|
||||
|
||||
PF_CONSOLE_CMD( Avatar_Anim, BlendAnim, "string Animation, float blendFactor", "Blend the given animation with the current animation.")
|
||||
{
|
||||
char *animationName = params[0];
|
||||
plString animationName = plString::FromUtf8(params[0]);
|
||||
float blendFactor = params[1];
|
||||
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
|
||||
|
||||
if (avatar && animationName)
|
||||
if (avatar && !animationName.IsNull())
|
||||
{
|
||||
plAGAnim * anim = plAGAnim::FindAnim(animationName);
|
||||
if(anim)
|
||||
@ -650,12 +650,12 @@ PF_CONSOLE_CMD( Avatar_Anim, BlendAnim, "string Animation, float blendFactor", "
|
||||
|
||||
PF_CONSOLE_CMD( Avatar_Anim, BlendAnimPri, "string Animation, float blendFactor, int priority", "Blend animation using priority.")
|
||||
{
|
||||
char *animationName = params[0];
|
||||
plString animationName = plString::FromUtf8(params[0]);
|
||||
float blendFactor = params[1];
|
||||
int priority = params[2];
|
||||
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
|
||||
|
||||
if (avatar && animationName)
|
||||
if (avatar && !animationName.IsNull())
|
||||
{
|
||||
plAGAnim * anim = plAGAnim::FindAnim(animationName);
|
||||
if(anim)
|
||||
@ -671,15 +671,15 @@ PF_CONSOLE_CMD( Avatar_Anim, PlaySimpleAnim, "string AvatarName, string Animatio
|
||||
{
|
||||
plArmatureMod *avatar = plAvatarMgr::GetInstance()->FindAvatarByModelName(params[0]);
|
||||
if (avatar)
|
||||
avatar->PlaySimpleAnim(params[1]);
|
||||
avatar->PlaySimpleAnim(plString::FromUtf8(params[1]));
|
||||
}
|
||||
|
||||
PF_CONSOLE_CMD( Avatar_Anim, DetachAnim, "string Animation", "Remove the given animation from the avatar.")
|
||||
{
|
||||
char *animationName = params[0];
|
||||
plString animationName = plString::FromUtf8(params[0]);
|
||||
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
|
||||
|
||||
if (avatar && animationName)
|
||||
if (avatar && !animationName.IsNull())
|
||||
{
|
||||
plAGAnimInstance * instance = avatar->FindAnimInstance(animationName);
|
||||
if(instance)
|
||||
@ -691,11 +691,11 @@ PF_CONSOLE_CMD( Avatar_Anim, DetachAnim, "string Animation", "Remove the given a
|
||||
|
||||
PF_CONSOLE_CMD( Avatar_Anim, SetBlend, "string Animation, float blend", "Set the blend of the given animation.")
|
||||
{
|
||||
char *animationName = params[0];
|
||||
plString animationName = plString::FromUtf8(params[0]);
|
||||
float blend = params[1];
|
||||
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
|
||||
|
||||
if (avatar && animationName)
|
||||
if (avatar && !animationName.IsNull())
|
||||
{
|
||||
plAGAnimInstance *anim = avatar->FindAnimInstance(animationName);
|
||||
if(anim)
|
||||
|
@ -6548,7 +6548,7 @@ PF_CONSOLE_CMD( Animation, // Group name
|
||||
{
|
||||
plAnimCmdMsg *msg = new plAnimCmdMsg();
|
||||
msg->SetCmd(plAnimCmdMsg::kContinue);
|
||||
msg->SetAnimName(nil);
|
||||
msg->SetAnimName(plString::Null);
|
||||
msg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
SendAnimCmdMsg(plString::FromUtf8(params[0]), msg);
|
||||
}
|
||||
@ -6560,7 +6560,7 @@ PF_CONSOLE_CMD( Animation, // Group name
|
||||
{
|
||||
plAnimCmdMsg *msg = new plAnimCmdMsg();
|
||||
msg->SetCmd(plAnimCmdMsg::kStop);
|
||||
msg->SetAnimName(nil);
|
||||
msg->SetAnimName(plString::Null);
|
||||
msg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
SendAnimCmdMsg(plString::FromUtf8(params[0]), msg);
|
||||
}
|
||||
@ -6574,7 +6574,7 @@ PF_CONSOLE_CMD( Animation, // Group name
|
||||
msg->SetCmd(plAGCmdMsg::kSetBlend);
|
||||
msg->fBlend = params[2];
|
||||
msg->fBlendRate = params[3];
|
||||
msg->SetAnimName(params[1]);
|
||||
msg->SetAnimName(plString::FromUtf8(params[1]));
|
||||
msg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
SendAnimCmdMsg(plString::FromUtf8(params[0]), msg);
|
||||
}
|
||||
@ -6588,7 +6588,7 @@ PF_CONSOLE_CMD( Animation, // Group name
|
||||
msg->SetCmd(plAGCmdMsg::kSetAmp);
|
||||
msg->fAmp = params[2];
|
||||
msg->fAmpRate = params[3];
|
||||
msg->SetAnimName(params[1]);
|
||||
msg->SetAnimName(plString::FromUtf8(params[1]));
|
||||
msg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
SendAnimCmdMsg(plString::FromUtf8(params[0]), msg);
|
||||
}
|
||||
@ -6602,7 +6602,7 @@ PF_CONSOLE_CMD( Animation, // Group name
|
||||
msg->SetCmd(plAnimCmdMsg::kSetSpeed);
|
||||
msg->fSpeed = params[2];
|
||||
msg->fSpeedChangeRate = params[3];
|
||||
msg->SetAnimName(params[1]);
|
||||
msg->SetAnimName(plString::FromUtf8(params[1]));
|
||||
msg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
SendAnimCmdMsg(plString::FromUtf8(params[0]), msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user