Fixed build errors when compiling with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF
This commit is contained in:
@@ -91,13 +91,13 @@ namespace osgAnimation
|
||||
inline void setVertexSource(osg::Vec3Array *v){ _positionSource=v;}
|
||||
|
||||
/** Get source of vertices for this morph geometry */
|
||||
inline osg::Vec3Array * getVertexSource()const{return _positionSource;}
|
||||
inline osg::Vec3Array * getVertexSource()const{return _positionSource.get();}
|
||||
|
||||
/** Set source of normals for this morph geometry */
|
||||
inline void setNormalSource(osg::Vec3Array *n){ _normalSource=n;}
|
||||
|
||||
/** Get source of normals for this morph geometry */
|
||||
inline osg::Vec3Array * getNormalSource()const{return _normalSource;}
|
||||
inline osg::Vec3Array * getNormalSource() const {return _normalSource.get();}
|
||||
|
||||
/** Add a \c MorphTarget to the \c MorphGeometry.
|
||||
* If \c MorphTarget is not \c NULL and is not contained in the \c MorphGeometry
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace osgAnimation
|
||||
virtual void operator()(MorphGeometry&);
|
||||
|
||||
inline void setShader( osg::Shader*s ) { _shader=s; }
|
||||
inline const osg::Shader * getShader() const{ return _shader; }
|
||||
inline osg::Shader * getShader() { return _shader; }
|
||||
inline const osg::Shader * getShader() const{ return _shader.get(); }
|
||||
inline osg::Shader * getShader() { return _shader.get(); }
|
||||
|
||||
///texture unit reserved for morphtarget TBO default is 7
|
||||
void setReservedTextureUnit(unsigned int t) { _reservedTextureUnit=t; }
|
||||
|
||||
@@ -50,8 +50,8 @@ namespace osgAnimation
|
||||
unsigned int getFirstVertexAttributeTarget()const { return _minAttribIndex;}
|
||||
|
||||
void setShader(osg::Shader* shader) { _shader = shader; }
|
||||
const osg::Shader* getShader() const { return _shader; }
|
||||
osg::Shader* getShader() { return _shader; }
|
||||
const osg::Shader* getShader() const { return _shader.get(); }
|
||||
osg::Shader* getShader() { return _shader.get(); }
|
||||
|
||||
osg::Vec4Array* getVertexAttrib(unsigned int index);
|
||||
unsigned int getNumVertexAttrib() const {return _boneWeightAttribArrays.size();}
|
||||
@@ -61,7 +61,7 @@ namespace osgAnimation
|
||||
|
||||
const BoneNamePaletteIndex& getBoneNameToPalette(){ return _boneNameToPalette; }
|
||||
const BonePalette& getBonePalette() { return _bonePalette; }
|
||||
osg::Uniform* getMatrixPaletteUniform() { return _uniformMatrixPalette; }
|
||||
osg::Uniform* getMatrixPaletteUniform() { return _uniformMatrixPalette.get(); }
|
||||
|
||||
void computeMatrixPaletteUniform(const osg::Matrix& transformFromSkeletonToGeometry, const osg::Matrix& invTransformFromSkeletonToGeometry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user