From 01c284429b6e67c4c38498ff1c031476c94841e9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 Jun 2008 16:25:14 +0000 Subject: [PATCH] From Paul Melis, "Here's an updated include/osgText/Text3D that forces recomputation of the glyph repr when the character depth is updated, also when the rendering mode is set. This caused a Text3D object read from a .osg file to not have the correct depth." --- include/osgText/Text3D | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osgText/Text3D b/include/osgText/Text3D index d864d6a7b..7b445c7c8 100644 --- a/include/osgText/Text3D +++ b/include/osgText/Text3D @@ -47,12 +47,12 @@ public: /** Get the Charactere Depth of text. */ float getCharacterDepth() const { return _characterDepth; } /** Set the Charactere Depth of text. */ - void setCharacterDepth(float characterDepth) { _characterDepth = characterDepth; } + void setCharacterDepth(float characterDepth) { _characterDepth = characterDepth; computeGlyphRepresentation(); } /** Get the render mode used to render the text. */ RenderMode getRenderMode() const { return _renderMode; } /** Set the render mode used to render the text. */ - void setRenderMode(RenderMode renderMode) { _renderMode = renderMode; } + void setRenderMode(RenderMode renderMode) { _renderMode = renderMode; computeGlyphRepresentation(); } // /** Get the wall StateSet */ // osg::StateSet * getWallStateSet() { return _wallStateSet.get(); }