From 1c6e165cb33f254ca835f14ceb1e6f9fe8ea8085 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 May 2006 09:12:43 +0000 Subject: [PATCH] From Farshid Lashkari, "The setScale(Vec3) method of osg::AutoTransform does not dirty the matrix. The fix is attached." --- include/osg/AutoTransform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/AutoTransform b/include/osg/AutoTransform index 0bef0788a..989ecfa51 100644 --- a/include/osg/AutoTransform +++ b/include/osg/AutoTransform @@ -49,7 +49,7 @@ class OSG_EXPORT AutoTransform : public Transform inline const Quat& getRotation() const { return _rotation; } inline void setScale(float scale) { _scale.set(scale,scale,scale); _matrixDirty=true; dirtyBound(); } - inline void setScale(const Vec3& scale) { _scale = scale; dirtyBound(); } + inline void setScale(const Vec3& scale) { _scale = scale; _matrixDirty=true; dirtyBound(); } inline const Vec3& getScale() const { return _scale; } inline void setPivotPoint(const Vec3& pivot) { _pivotPoint = pivot; _matrixDirty=true; dirtyBound(); }