Checked in Macro Jez's additions to osgText to support .osg IO make it
a fully functioning NodeKit. Also reimplement notify() to try an prevent a crash which has been caused by to objects in notify.cpp being initiliazed twice, the second time the auto_ptr holding the dev/null ofstream was being initilized to 0.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
using namespace osgText;
|
||||
|
||||
Paragraph::Paragraph()
|
||||
: osg::Geode()
|
||||
{
|
||||
_alignment = osgText::Text::LEFT_TOP;
|
||||
_maxCharsPerLine = 80;
|
||||
@@ -19,6 +20,7 @@ Paragraph::Paragraph(const Paragraph& paragraph,const osg::CopyOp& copyop):
|
||||
}
|
||||
|
||||
Paragraph::Paragraph(const osg::Vec3& position,const std::string& text,osgText::Font* font)
|
||||
: osg::Geode()
|
||||
{
|
||||
_maxCharsPerLine = 80;
|
||||
_position = position;
|
||||
|
||||
Reference in New Issue
Block a user