Changeset 508
- Timestamp:
- 02/19/08 14:28:19 (11 months ago)
- Files:
-
- branches/morph-targets/libx42make/include/x42make-modeldata.h (modified) (1 diff)
- branches/morph-targets/libx42make/modeldata-anim.cpp (modified) (3 diffs)
- branches/morph-targets/libx42make/modeldata.cpp (modified) (1 diff)
- branches/morph-targets/libx42pp/include/x42types.h (modified) (1 diff)
- branches/morph-targets/x42maya/Export-Anim.cpp (modified) (1 diff)
- branches/morph-targets/x42maya/Export-ConfigCmds.cpp (modified) (2 diffs)
- branches/morph-targets/x42maya/Export-Gather.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/morph-targets/libx42make/include/x42make-modeldata.h
r507 r508 204 204 std::string name; 205 205 206 BoneFlags flags;206 bone_flags flags; 207 207 uint index; 208 208 ConstBonePtr parent; branches/morph-targets/libx42make/modeldata-anim.cpp
r506 r508 462 462 fail( ErrCode::InvalidOp, "CollapseInteriorBones requires the bones to be sorted." ); 463 463 464 if( b->flags & BoneFlags::UseInvParentScale )464 if( b->flags & bone_flags::use_inverse_parent_scale ) 465 465 fail( ErrCode::InvalidOp, "CollapseInteriorBones can't handle the use of BoneFlags::UseInvParentScale." ); 466 466 } … … 527 527 fail( ErrCode::InvalidOp, "CollapseConstantBones requires the bones to be sorted." ); 528 528 529 if( b->flags & BoneFlags::UseInvParentScale )529 if( b->flags & bone_flags::use_inverse_parent_scale ) 530 530 fail( ErrCode::InvalidOp, "CollapseConstantBones can't handle the use of BoneFlags::UseInvParentScale." ); 531 531 } … … 594 594 root->name = "root-offset"; 595 595 root->parent = ConstBonePtr(); 596 root->flags = BoneFlags::None;596 root->flags = bone_flags::none; 597 597 root->staticAnim = true; 598 598 branches/morph-targets/libx42make/modeldata.cpp
r507 r508 56 56 Bone::Bone( ModelData *owner ) 57 57 : owner( owner ), 58 flags( BoneFlags::None ),58 flags( bone_flags::none ), 59 59 animGroup( 0 ), staticAnim( false ), 60 60 branches/morph-targets/libx42pp/include/x42types.h
r507 r508 212 212 }; 213 213 214 X42_DECLARE_ENUM( BoneFlags )215 None= X42_BF_NONE,216 UseInvParentScale= X42_BF_USE_INV_PARENT_SCALE,217 X42_END_ENUM_WITH_TYPE( BoneFlags, uint );214 X42_DECLARE_ENUM( bone_flags ) 215 none = X42_BF_NONE, 216 use_inverse_parent_scale = X42_BF_USE_INV_PARENT_SCALE, 217 X42_END_ENUM_WITH_TYPE( bone_flags, uint ); 218 218 219 219 struct rgba branches/morph-targets/x42maya/Export-Anim.cpp
r468 r508 30 30 31 31 bone.localMats.clear(); 32 bone.flags = BoneFlags::None;32 bone.flags = bone_flags::none; 33 33 34 34 MFnDependencyNode xf( DagTag::GetPath( bone.tag ).node() ); branches/morph-targets/x42maya/Export-ConfigCmds.cpp
r462 r508 924 924 if( !b ) { setResult( false ); return MS::kFailure; } 925 925 926 setResult( (bool)(b->flags & BoneFlags::UseInvParentScale) );926 setResult( (bool)(b->flags & bone_flags::use_inverse_parent_scale) ); 927 927 return MS::kSuccess; 928 928 } … … 934 934 935 935 if( useIPS ) 936 b->flags |= BoneFlags::UseInvParentScale;936 b->flags |= bone_flags::use_inverse_parent_scale; 937 937 else 938 b->flags &= (uint)~ BoneFlags::UseInvParentScale;938 b->flags &= (uint)~bone_flags::use_inverse_parent_scale; 939 939 940 940 return MS::kSuccess; branches/morph-targets/x42maya/Export-Gather.cpp
r507 r508 169 169 newBone->name = name.asChar(); 170 170 171 newBone->flags = BoneFlags::None;171 newBone->flags = bone_flags::none; 172 172 173 173 newBone->parent = parentBone;
