textActor->SetInput( bbGetInputIn().c_str() );
textActor->SetPosition( bbGetInputX(), bbGetInputY(),bbGetInputZ() );
- bbGetInputRenderer()->AddActor( textActor );
+ if ( bbGetInputRenderer()!=NULL )
+ {
+ bbGetInputRenderer()->AddActor( textActor );
+ }
+
+ if ( bbGetInputTransform()!=NULL )
+ {
+ textActor->SetUserTransform( bbGetInputTransform() );
+ }
+
bbSetOutputOut(textActor);
}
colour.push_back(0);
bbSetInputColour(colour);
bbSetInputRenderer(NULL);
+ bbSetInputTransform(NULL);
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)