Changeset 582
- Timestamp:
- 07/03/08 12:29:44 (5 months ago)
- Files:
-
- trunk/libx42make/include/x42make-modeldata.h (modified) (3 diffs)
- trunk/libx42make/modeldata.cpp (modified) (4 diffs)
- trunk/x42maya/Export-Gather.cpp (modified) (1 diff)
- trunk/x42maya/Export.cpp (modified) (1 diff)
- trunk/x42maya/Export.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libx42make/include/x42make-modeldata.h
r478 r582 107 107 ApiTagPtr tag; 108 108 109 static const uint InvalidTriangle = 0xFFFFFFFF;110 static const uint InvalidInfluence = 0xFFFFFFFF;111 static const index InvalidIndex = index_traits::max_val;109 static const uint InvalidTriangle; 110 static const uint InvalidInfluence; 111 static const index InvalidIndex; 112 112 113 113 uint NumElements( void ) const { return indices.size() ? (uint)indices.size() : (uint)verts.size(); } … … 246 246 void MakeScaleValuesUniform( void ); 247 247 248 static const int AutoGenExtent = -2;249 static const int InheritTolVal = -2;248 static const float AutoGenExtent; 249 static const float InheritTolVal; 250 250 251 251 float extent; … … 459 459 void MakeScaleValuesUniform( void ); 460 460 461 static const uint InvalidInfluence = util::integer_traits< uint >::max_val;462 static const uint InvalidBone = util::integer_traits< uint >::max_val;461 static const uint InvalidInfluence; 462 static const uint InvalidBone; 463 463 464 464 void CountInfluenceUses( void ); trunk/libx42make/modeldata.cpp
r465 r582 52 52 */ 53 53 54 const float Bone::AutoGenExtent = -2; 55 const float Bone::InheritTolVal = -2; 56 54 57 Bone::Bone( ModelData *owner ) 55 58 : owner( owner ), … … 57 60 animGroup( 0 ), staticAnim( false ), 58 61 59 extent( (float)AutoGenExtent ),62 extent( AutoGenExtent ), 60 63 61 posTol( (float)InheritTolVal ),62 rotTol( (float)InheritTolVal ),63 scaleTol( (float)InheritTolVal ),64 65 pinPosTol( (float)InheritTolVal ),66 pinRotTol( (float)InheritTolVal ),67 pinScaleTol( (float)InheritTolVal )64 posTol( InheritTolVal ), 65 rotTol( InheritTolVal ), 66 scaleTol( InheritTolVal ), 67 68 pinPosTol( InheritTolVal ), 69 pinRotTol( InheritTolVal ), 70 pinScaleTol( InheritTolVal ) 68 71 { 69 72 } … … 88 91 */ 89 92 93 const uint Group::InvalidTriangle = 0xFFFFFFFF; 94 const uint Group::InvalidInfluence = 0xFFFFFFFF; 95 const index Group::InvalidIndex = index_traits::max_val; 96 90 97 Group::Group( Lod *owner ) 91 98 : owner( owner ), … … 286 293 ModelData 287 294 */ 295 296 const uint ModelData::InvalidInfluence = util::integer_traits< uint >::max_val; 297 const uint ModelData::InvalidBone = util::integer_traits< uint >::max_val; 288 298 289 299 ModelData::ModelData( void ) : trunk/x42maya/Export-Gather.cpp
r580 r582 179 179 newBone->extent = Bone::AutoGenExtent; 180 180 181 newBone->posTol = GetAttrValueOrDefault( boneObj, "x42_posTol", (float)Bone::InheritTolVal );182 newBone->rotTol = GetAttrValueOrDefault( boneObj, "x42_rotTol", (float)Bone::InheritTolVal );183 newBone->scaleTol = GetAttrValueOrDefault( boneObj, "x42_scaleTol", (float)Bone::InheritTolVal );184 185 float defPinTol = GetAttrValueOrDefault( boneObj, "x42_pinTol", (float)Bone::InheritTolVal );181 newBone->posTol = GetAttrValueOrDefault( boneObj, "x42_posTol", Bone::InheritTolVal ); 182 newBone->rotTol = GetAttrValueOrDefault( boneObj, "x42_rotTol", Bone::InheritTolVal ); 183 newBone->scaleTol = GetAttrValueOrDefault( boneObj, "x42_scaleTol", Bone::InheritTolVal ); 184 185 float defPinTol = GetAttrValueOrDefault( boneObj, "x42_pinTol", Bone::InheritTolVal ); 186 186 187 187 newBone->pinPosTol = GetAttrValueOrDefault( boneObj, "x42_pinPosTol", defPinTol ); trunk/x42maya/Export.cpp
r463 r582 27 27 */ 28 28 29 const float ExModelData::DontSplit = -1; 30 29 31 ExModelData::ExModelData( void ) 30 32 : verbose( false ), scaleScale( 1.0F ), trunk/x42maya/Export.h
r462 r582 129 129 uint maxBonesPerGroup; 130 130 131 static const int DontSplit = -1;131 static const float DontSplit; 132 132 133 133 struct
