readd VertexInfluence whenever it's bad named and kinda useless
This commit is contained in:
@@ -46,15 +46,26 @@ namespace osgAnimation
|
||||
typedef std::vector<BoneWeight> BoneWeightList;
|
||||
typedef std::vector<unsigned int> IndexList;
|
||||
|
||||
//Bone influence list
|
||||
class OSGANIMATION_EXPORT VertexInfluence : public IndexWeightList
|
||||
{
|
||||
public:
|
||||
const std::string& getName() const { return _name;}
|
||||
void setName(const std::string& name) { _name = name;}
|
||||
|
||||
class VertexInfluenceMap : public std::map<std::string, IndexWeightList> , public osg::Object
|
||||
protected:
|
||||
// the name is the bone to link to
|
||||
std::string _name;
|
||||
};
|
||||
|
||||
class VertexInfluenceMap : public std::map<std::string, VertexInfluence> , public osg::Object
|
||||
{
|
||||
public:
|
||||
META_Object(osgAnimation, VertexInfluenceMap);
|
||||
|
||||
VertexInfluenceMap() {}
|
||||
VertexInfluenceMap(const osgAnimation::VertexInfluenceMap& org, const osg::CopyOp& copyop):
|
||||
std::map<std::string, IndexWeightList>(org),
|
||||
std::map<std::string, VertexInfluence>(org),
|
||||
osg::Object(org, copyop)
|
||||
{}
|
||||
///normalize per vertex weights given numvert of the attached mesh
|
||||
|
||||
Reference in New Issue
Block a user