Fix clang 13 compilation problems (#5791)
* Fix clang 13 compilation problems Re-instated ShowPlayedSequencesDebug logic by introducing no-op lambda which replaces missing `Draw2dLabel` functionality ( added TODO marker there ) Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * apply review suggestions Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Fix type in assert message Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -561,12 +561,10 @@ uint32_t AZ::FFont::GetNumQuadsForText(const char* str, const bool asciiMultiLin
|
||||
++numQuads;
|
||||
}
|
||||
|
||||
uint32_t nextCh = 0;
|
||||
const wchar_t* pChar = strW.c_str();
|
||||
while (uint32_t ch = *pChar)
|
||||
{
|
||||
++pChar;
|
||||
nextCh = *pChar;
|
||||
|
||||
switch (ch)
|
||||
{
|
||||
|
||||
+16
-8
@@ -290,14 +290,22 @@ namespace AZ
|
||||
menuButton->setAutoRaise(true);
|
||||
menuButton->setIcon(QIcon(":/Cards/img/UI20/Cards/menu_ico.svg"));
|
||||
menuButton->setVisible(true);
|
||||
QObject::connect(menuButton, &QToolButton::clicked, &dialog, [&]() {
|
||||
QAction* action = nullptr;
|
||||
|
||||
QMenu menu(&dialog);
|
||||
action = menu.addAction("Clear", [&] { inspector->SetUvNameMap(RPI::MaterialModelUvOverrideMap()); });
|
||||
action = menu.addAction("Revert", [&] { inspector->SetUvNameMap(matModUvOverrides);; });
|
||||
menu.exec(QCursor::pos());
|
||||
});
|
||||
QObject::connect(
|
||||
menuButton, &QToolButton::clicked, &dialog, [&]()
|
||||
{
|
||||
QMenu menu(&dialog);
|
||||
menu.addAction(
|
||||
"Clear", [&]
|
||||
{
|
||||
inspector->SetUvNameMap(RPI::MaterialModelUvOverrideMap());
|
||||
});
|
||||
menu.addAction(
|
||||
"Revert", [&]
|
||||
{
|
||||
inspector->SetUvNameMap(matModUvOverrides);
|
||||
});
|
||||
menu.exec(QCursor::pos());
|
||||
});
|
||||
|
||||
QDialogButtonBox* buttonBox = new QDialogButtonBox(&dialog);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
|
||||
|
||||
@@ -194,7 +194,6 @@ namespace AZ
|
||||
const uint32_t originalVertex = sourceOriginalVertex[vertexIndex + vertexStart];
|
||||
const uint32_t influenceCount = AZStd::GetMin<uint32_t>(MaxSupportedSkinInfluences, static_cast<uint32_t>(sourceSkinningInfo->GetNumInfluences(originalVertex)));
|
||||
uint32_t influenceIndex = 0;
|
||||
float weightError = 1.0f;
|
||||
|
||||
AZStd::vector<uint32_t> localIndices;
|
||||
for (; influenceIndex < influenceCount; ++influenceIndex)
|
||||
@@ -202,7 +201,6 @@ namespace AZ
|
||||
EMotionFX::SkinInfluence* influence = sourceSkinningInfo->GetInfluence(originalVertex, influenceIndex);
|
||||
localIndices.push_back(static_cast<uint32_t>(influence->GetNodeNr()));
|
||||
blendWeightBufferData[atomVertexBufferOffset + vertexIndex][influenceIndex] = influence->GetWeight();
|
||||
weightError -= blendWeightBufferData[atomVertexBufferOffset + vertexIndex][influenceIndex];
|
||||
}
|
||||
|
||||
// Zero out any unused ids/weights
|
||||
|
||||
Reference in New Issue
Block a user