Commit 9a03f38e authored by Sylvain Thery's avatar Sylvain Thery

normal vbo creation at computing (if checked)

parent 3194ec6e
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>472</width>
<height>276</height>
<height>292</height>
</rect>
</property>
<property name="windowTitle">
......@@ -75,6 +75,16 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="enableVBO">
<property name="text">
<string>Create VBO</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
......
......@@ -121,6 +121,14 @@ void Surface_DifferentialProperties_Plugin::computeNormalFromDialog()
bool autoUpdate = (currentItems[0]->checkState() == Qt::Checked);
computeNormal(mapName, positionName, normalName, autoUpdate);
// create VBO if asked
if (m_computeNormalDialog->enableVBO->isChecked())
{
MapHandlerGen* mhg = getSCHNApps()->getMap(mapName);
if (mhg != NULL)
mhg->createVBO(normalName);
}
}
}
......
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