From 00a424398f36f9252dc869c1b55871601c5ff639 Mon Sep 17 00:00:00 2001 From: Claire Mouton Date: Fri, 21 Sep 2012 13:00:59 +0000 Subject: [PATCH] Feature #1609 In vtkText3D, fixed a bug at the first appearance of the actor. --- packages/vtk/src/bbvtkText3D.cxx | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/vtk/src/bbvtkText3D.cxx b/packages/vtk/src/bbvtkText3D.cxx index 880bd61..7f7a0d7 100644 --- a/packages/vtk/src/bbvtkText3D.cxx +++ b/packages/vtk/src/bbvtkText3D.cxx @@ -40,21 +40,18 @@ void Text3D::Process() _textProp->SetFontSize( 14 ); _textActor->SetTextProperty( _textProp ); } - // If the text actor already exists in the scene, simply refresh its text. - else - { - _textProp->SetColor( bbGetInputColour()[0] , bbGetInputColour()[1], bbGetInputColour()[2] ); - - _textActor->SetInput( bbGetInputIn().c_str() ); - _textActor->SetPosition( bbGetInputX(), bbGetInputY(),bbGetInputZ() ); - - if ( bbGetInputTransform()!=NULL ) - { - _textActor->SetUserTransform( bbGetInputTransform() ); - } + _textProp->SetColor( bbGetInputColour()[0] , bbGetInputColour()[1], bbGetInputColour()[2] ); + + _textActor->SetInput( bbGetInputIn().c_str() ); + _textActor->SetPosition( bbGetInputX(), bbGetInputY(),bbGetInputZ() ); - bbSetOutputOut(_textActor); + if ( bbGetInputTransform()!=NULL ) + { + _textActor->SetUserTransform( bbGetInputTransform() ); } + + bbSetOutputOut(_textActor); + } //===== -- 2.47.1