]> Creatis software - bbtk.git/commitdiff
Feature #1609 In vtkText3D, fixed a bug at the first appearance of the actor.
authorClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Fri, 21 Sep 2012 13:00:59 +0000 (13:00 +0000)
committerClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Fri, 21 Sep 2012 13:00:59 +0000 (13:00 +0000)
packages/vtk/src/bbvtkText3D.cxx

index 880bd615d0343140d8d891419487c2333663e3a3..7f7a0d780b511667c26923ec747a75a3c3e77843 100644 (file)
@@ -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);
+  
 }
 
 //=====