swap priority in BonePtrWeight comparator< yeild the same VG set
This commit is contained in:
parent
ce6a316bde
commit
fae9729560
@ -51,11 +51,9 @@ namespace osgAnimation
|
||||
inline const float & getWeight() const {return second;}
|
||||
inline void setWeight(float b) {second=b;}
|
||||
inline bool operator<(const BonePtrWeight &b1) const{
|
||||
if (getBonePtr() < b1.getBonePtr())
|
||||
return true;
|
||||
else if (getBonePtr() > b1.getBonePtr())
|
||||
return false;
|
||||
return (getWeight() < b1.getWeight());
|
||||
if (second > b1.second)return true;
|
||||
if (second < b1.second)return false;
|
||||
return (first.get() > b1.first.get());
|
||||
}
|
||||
};
|
||||
typedef std::vector<BonePtrWeight> BonePtrWeightList;
|
||||
|
@ -120,7 +120,7 @@ void RigTransformSoftware::buildMinimumUpdateSet(const BoneMap&boneMap,const Rig
|
||||
_uniqInfluenceSet2VertIDList.reserve(unifyBuffer.size());
|
||||
for (UnifyBoneGroup::const_iterator it = unifyBuffer.begin(); it != unifyBuffer.end(); ++it)
|
||||
_uniqInfluenceSet2VertIDList.push_back(it->second);
|
||||
OSG_DEBUG << "uniq groups " << _uniqInfluenceSet2VertIDList.size() << " for " << rig.getName() << std::endl;
|
||||
OSG_WARN << "uniq groups " << _uniqInfluenceSet2VertIDList.size() << " for " << rig.getName() << std::endl;
|
||||
}
|
||||
|
||||
bool RigTransformSoftware::prepareData(RigGeometry&rig) {
|
||||
|
Loading…
Reference in New Issue
Block a user