From 5c7a6a25a097ff2c73888b707510b8eadbcbcd61 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 Jan 2009 15:04:07 +0000 Subject: [PATCH] From Paul Melis, "I think TransferFunction needs to call _image->dirty() in two places in response to an assign() of new transfer map values. Here's an updated file, which seems to work here. " --- src/osg/TransferFunction.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osg/TransferFunction.cpp b/src/osg/TransferFunction.cpp index 9d71b883c..428283848 100644 --- a/src/osg/TransferFunction.cpp +++ b/src/osg/TransferFunction.cpp @@ -97,6 +97,7 @@ void TransferFunction1D::assign(const ValueMap& vcm, bool updateMinMaxRange) _colors[i] = color; } } + _image->dirty(); return; } @@ -135,5 +136,7 @@ void TransferFunction1D::assign(const ValueMap& vcm, bool updateMinMaxRange) lower_itr = upper_itr; } + + _image->dirty(); }