From: Claire Mouton Date: Fri, 21 Sep 2012 13:00:59 +0000 (+0000) Subject: Feature #1609 In vtkText3D, fixed a bug at the first appearance of the actor. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=00a424398f36f9252dc869c1b55871601c5ff639;p=bbtk.git Feature #1609 In vtkText3D, fixed a bug at the first appearance of the actor. --- 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); + } //=====