Commit 7841ecb4 authored by Max Lyon's avatar Max Lyon
Browse files

jo digga, fixed crash

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16423 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9069b25e
......@@ -102,6 +102,7 @@ void TypePolyhedralMeshPlugin::pluginsInitialized() {
int TypePolyhedralMeshPlugin::addEmpty() {
// new object data struct
PolyhedralMeshObject* object = new PolyhedralMeshObject(DATA_POLYHEDRAL_MESH);
......@@ -123,12 +124,17 @@ int TypePolyhedralMeshPlugin::addEmpty() {
object->materialNode()->set_ambient_color(ACG::Vec4f(1.0, 1.0, 1.0, 1.0));
// Set rendering props
object->meshNode()->drawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED);
object->meshNode()->set_scaling(0.8);
object->update();
if(OpenFlipper::Options::gui())
{
object->meshNode()->drawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED);
object->meshNode()->set_scaling(0.8);
object->update();
object->show();
}
object->show();
emit log(LOGINFO, object->getObjectinfo());
......
Supports Markdown
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