Removed the 'data-warnings' concept for checking before saving a material document. It's no longer necessary since we no longer replace the original data with placeholders.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
santorac
2021-11-16 00:02:20 -08:00
parent a789d7b762
commit 224e0bd20f
4 changed files with 0 additions and 53 deletions
@@ -365,24 +365,6 @@ namespace AtomToolsFramework
return false;
}
AZStd::vector<AZStd::string> dataWarnings;
AtomToolsDocumentRequestBus::EventResult(dataWarnings, documentId, &AtomToolsDocumentRequestBus::Events::GetDataWarnings);
if (!dataWarnings.empty())
{
AZStd::string allWarnings;
AzFramework::StringFunc::Join(allWarnings, dataWarnings.begin(), dataWarnings.end(), "\n");
auto result = QMessageBox::warning(
QApplication::activeWindow(), QString("Data Warnings"),
QString("Are you sure you want to save with the following data warnings? \n\n%1").arg(allWarnings.c_str()),
QMessageBox::StandardButton::Yes, QMessageBox::StandardButton::No);
if (result == QMessageBox::StandardButton::No)
{
return false;
}
}
AtomToolsFramework::TraceRecorder traceRecorder(m_maxMessageBoxLineCount);
bool result = false;