Disable Test signal when start mapping

This commit is contained in:
baydam
2014-10-29 21:25:06 +00:00
parent ed9cca4ded
commit 9636ece1c9

View File

@@ -470,6 +470,9 @@ void MainWindow::addMesh()
if (getCurrentPaintId() == NULL_UID)
return;
// Disable Test signal when add Mesh
outputWindow->getCanvas()->enableTestSignal(false);
// Retrieve current paint (as texture).
Paint::ptr paint = getMappingManager().getPaintById(getCurrentPaintId());
Q_CHECK_PTR(paint);
@@ -503,6 +506,9 @@ void MainWindow::addTriangle()
if (getCurrentPaintId() == NULL_UID)
return;
// Disable Test signal when add Triangle
outputWindow->getCanvas()->enableTestSignal(false);
// Retrieve current paint (as texture).
Paint::ptr paint = getMappingManager().getPaintById(getCurrentPaintId());
Q_CHECK_PTR(paint);
@@ -536,6 +542,9 @@ void MainWindow::addEllipse()
if (getCurrentPaintId() == NULL_UID)
return;
// Disable Test signal when add Ellipse
outputWindow->getCanvas()->enableTestSignal(false);
// Retrieve current paint (as texture).
Paint::ptr paint = getMappingManager().getPaintById(getCurrentPaintId());
Q_CHECK_PTR(paint);