Commit 59f87526 authored by Jan Möbius's avatar Jan Möbius

Dennis: Place-stencil-node-at-right-position

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6634 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 41c5cff3
...@@ -125,13 +125,13 @@ void BaseObjectData::init() { ...@@ -125,13 +125,13 @@ void BaseObjectData::init() {
boundingBoxNode_ = new BoundingBoxNode(manipulatorNode(), "New Bounding Box"); boundingBoxNode_ = new BoundingBoxNode(manipulatorNode(), "New Bounding Box");
boundingBoxNode_->set_status( ACG::SceneGraph::BaseNode::HideNode ); boundingBoxNode_->set_status( ACG::SceneGraph::BaseNode::HideNode );
} }
if ( materialNode_ == 0 )
materialNode_ = new MaterialNode(boundingBoxNode(), "New Material");
if ( stencilRefNode_ == 0 ) if ( stencilRefNode_ == 0 )
{ {
stencilRefNode_ = new StencilRefNode(materialNode(), "New Material"); stencilRefNode_ = new StencilRefNode(boundingBoxNode(), "New Stencil Reference");
stencilRefNode_->set_status( ACG::SceneGraph::BaseNode::HideNode ); stencilRefNode_->set_status( ACG::SceneGraph::BaseNode::HideNode );
} }
if ( materialNode_ == 0 )
materialNode_ = new MaterialNode(stencilRefNode(), "New Material");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment