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

normal vbo creation at computing (if checked)

parent 3194ec6e
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>472</width> <width>472</width>
<height>276</height> <height>292</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -75,6 +75,16 @@ ...@@ -75,6 +75,16 @@
</item> </item>
</layout> </layout>
</item> </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> </layout>
</widget> </widget>
</item> </item>
......
...@@ -121,6 +121,14 @@ void Surface_DifferentialProperties_Plugin::computeNormalFromDialog() ...@@ -121,6 +121,14 @@ void Surface_DifferentialProperties_Plugin::computeNormalFromDialog()
bool autoUpdate = (currentItems[0]->checkState() == Qt::Checked); bool autoUpdate = (currentItems[0]->checkState() == Qt::Checked);
computeNormal(mapName, positionName, normalName, autoUpdate); 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