Commit a0cb10e3 authored by Jan Möbius's avatar Jan Möbius

Disable grid node for now, as it messes up scene geometry ( Scene radius is...

Disable grid node for now, as it messes up scene geometry ( Scene radius is completly wrong due to bounding box computation using grid)



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6816 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e086fce8
...@@ -132,8 +132,8 @@ Core() : ...@@ -132,8 +132,8 @@ Core() :
coordsysMaterialNode_ = new ACG::SceneGraph::MaterialNode(root_node_scenegraph_,"Coordsys Material Node"); coordsysMaterialNode_ = new ACG::SceneGraph::MaterialNode(root_node_scenegraph_,"Coordsys Material Node");
coordsysNode_ = new ACG::SceneGraph::CoordsysNode(coordsysMaterialNode_,"Core Coordsys Node"); coordsysNode_ = new ACG::SceneGraph::CoordsysNode(coordsysMaterialNode_,"Core Coordsys Node");
coordsysNode_->setTraverseMode (BaseNode::NodeFirst | BaseNode::SecondPass); coordsysNode_->setTraverseMode (BaseNode::NodeFirst | BaseNode::SecondPass);
gridNode_ = new ACG::SceneGraph::GridNode(root_node_scenegraph_,"Grid Node"); // gridNode_ = new ACG::SceneGraph::GridNode(root_node_scenegraph_,"Grid Node");
gridNode_->hide(); // gridNode_->hide();
// Add ViewMode All // Add ViewMode All
ViewMode* vm = new ViewMode(); ViewMode* vm = new ViewMode();
......
...@@ -581,7 +581,7 @@ private: ...@@ -581,7 +581,7 @@ private:
ACG::SceneGraph::CoordsysNode* coordsysNode_; ACG::SceneGraph::CoordsysNode* coordsysNode_;
/// Node for the grid /// Node for the grid
ACG::SceneGraph::GridNode* gridNode_; // ACG::SceneGraph::GridNode* gridNode_;
/** @} */ /** @} */
......
...@@ -122,10 +122,10 @@ void Core::applyOptions(){ ...@@ -122,10 +122,10 @@ void Core::applyOptions(){
if ( OpenFlipper::Options::multiView() ) if ( OpenFlipper::Options::multiView() )
coreWidget_->setViewerLayout( OpenFlipper::Options::defaultViewerLayout() ); coreWidget_->setViewerLayout( OpenFlipper::Options::defaultViewerLayout() );
if ( OpenFlipper::Options::gridVisible() ) // if ( OpenFlipper::Options::gridVisible() )
gridNode_->show(); // gridNode_->show();
else // else
gridNode_->hide(); // gridNode_->hide();
//set defaultBackgroundColor //set defaultBackgroundColor
QColor c = OpenFlipper::Options::defaultBackgroundColor() ; QColor c = OpenFlipper::Options::defaultBackgroundColor() ;
......
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