From Keith Steffen, changed instance of sun to sun_geode to avoid Solaris10 build issue with it defining "sun"?#!
This commit is contained in:
parent
14dab7f818
commit
f17faa80b3
@ -41,9 +41,9 @@ osg::Node* createScene()
|
|||||||
sun_sd->setShape(sun_sphere);
|
sun_sd->setShape(sun_sphere);
|
||||||
sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0));
|
sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0));
|
||||||
|
|
||||||
osg::Geode* sun = new osg::Geode;
|
osg::Geode* sun_geode = new osg::Geode;
|
||||||
sun->setName("sun");
|
sun_geode->setName("sun");
|
||||||
sun->addDrawable(sun_sd);
|
sun_geode->addDrawable(sun_sd);
|
||||||
|
|
||||||
// Move the sun behind the earth
|
// Move the sun behind the earth
|
||||||
osg::PositionAttitudeTransform *pat = new osg::PositionAttitudeTransform;
|
osg::PositionAttitudeTransform *pat = new osg::PositionAttitudeTransform;
|
||||||
@ -52,7 +52,7 @@ osg::Node* createScene()
|
|||||||
osg::Group* scene = new osg::Group;
|
osg::Group* scene = new osg::Group;
|
||||||
scene->addChild(earth);
|
scene->addChild(earth);
|
||||||
scene->addChild(pat);
|
scene->addChild(pat);
|
||||||
pat->addChild(sun);
|
pat->addChild(sun_geode);
|
||||||
|
|
||||||
return scene;
|
return scene;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user