mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
strcmp -> _tcscmp
This commit is contained in:
parent
f5dc6ac8d7
commit
146f56e01e
@ -276,9 +276,9 @@ void MaxEggJoint::CreateMaxBone(void)
|
|||||||
IParamBlock2 *blk = _bone->pblock2;
|
IParamBlock2 *blk = _bone->pblock2;
|
||||||
for (int i=0; i<blk->NumParams(); i++) {
|
for (int i=0; i<blk->NumParams(); i++) {
|
||||||
MSTR n = blk->GetLocalName(i);
|
MSTR n = blk->GetLocalName(i);
|
||||||
if (strcmp(n, "Length")==0) blk->SetValue(i,0,(PN_stdfloat)len);
|
if (_tcscmp(n, _M("Length"))==0) blk->SetValue(i,0,(PN_stdfloat)len);
|
||||||
else if (strcmp(n, "Width")==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
|
else if (_tcscmp(n, _M("Width"))==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
|
||||||
else if (strcmp(n, "Height")==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
|
else if (_tcscmp(n, _M("Height"))==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
|
||||||
}
|
}
|
||||||
Point3 boneColor = GetUIColor(COLOR_BONES);
|
Point3 boneColor = GetUIColor(COLOR_BONES);
|
||||||
_node->SetWireColor(RGB(int(boneColor.x*255.0f), int(boneColor.y*255.0f), int(boneColor.z*255.0f) ));
|
_node->SetWireColor(RGB(int(boneColor.x*255.0f), int(boneColor.y*255.0f), int(boneColor.z*255.0f) ));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user