Commit 608a3654 authored by Matthias Möller's avatar Matthias Möller

fix: asnyc slider and number box after loading a new mesh

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14323 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cadf2845
......@@ -631,9 +631,12 @@ void DecimaterPlugin::slotUpdateNumVertices()
tool_->currentNumVertices->setText (QString::number(max));
tool_->verticesCount->setMaximum(max);
tool_->verticesCountSlider->setMaximum(max);
if ( tool_->verticesCount->value() < 2 )
{
tool_->verticesCount->setValue( max / 2 );
tool_->verticesCountSlider->setValue( max / 2);
}
tool_->verticesCount->blockSignals(false);
tool_->verticesCountSlider->blockSignals(false);
......@@ -669,7 +672,10 @@ void DecimaterPlugin::slotUpdateNumTriangles() {
tool_->trianglesCountSlider->setMaximum(max);
if (tool_->trianglesCount->value() < 2)
tool_->trianglesCount->setValue(max/2);
{
tool_->trianglesCount->setValue (max / 2 );
tool_->trianglesCountSlider->setValue( max / 2);
}
tool_->trianglesCount->blockSignals(false);
tool_->trianglesCountSlider->blockSignals(false);
......
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