Added reset of the ImageDetails values of TexelOffset and TexelScale.
This commit is contained in:
parent
251ec3c4f0
commit
1e768c0631
@ -167,6 +167,13 @@ void ImageLayer::offsetAndScaleImage(const osg::Vec4& offset, const osg::Vec4& s
|
||||
_texelOffset[2] -= offset[2]*_texelScale[2];
|
||||
_texelOffset[3] -= offset[3]*_texelScale[3];
|
||||
|
||||
ImageDetails* details = dynamic_cast<ImageDetails*>(_image->getUserData());
|
||||
if (details)
|
||||
{
|
||||
details->setTexelOffset(_texelOffset);
|
||||
details->setTexelScale(_texelScale);
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (computeMinMax(minValue, maxValue))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user