Skip to content

Commit 92cb8cf

Browse files
committed
~ add warnings in case of unknown/rare vars
1 parent c233a4f commit 92cb8cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/W3MayaAnimUtil.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,9 @@ void MAU::onChanged_eventContentRow(int newRow) {
12951295

12961296
eventsUpdateContentData(map, ui->checkEventsVarEnumType, "enumType", "CName");
12971297
eventsUpdateContentData(map, ui->checkEventsVarEnumValue, "enumValue", "Int32");
1298+
if ( !map.isEmpty() ) {
1299+
addLog(QString("[WARNING] SEnumVariant %1, the following vars are unknown for this type: %2").arg(entryName).arg(map.keys().join("; ")), logWarning);
1300+
}
12981301
} else if (entryType == "CPreAttackEventData") {
12991302
ui->stackEventsValue->setCurrentIndex(6);
13001303
QHash<QString, QVariant> map = value.value< QHash<QString, QVariant> >();
@@ -1314,6 +1317,9 @@ void MAU::onChanged_eventContentRow(int newRow) {
13141317
eventsUpdateContentData(map, ui->checkEventsVarAttackSwingDir, "swingDir", "EAttackSwingDirection");
13151318
eventsUpdateContentData(map, ui->checkEventsVarAttackSound, "soundAttackType", "CName");
13161319
eventsUpdateContentData(map, ui->checkEventsVarAttackCanBeDodged, "canBeDodged", "Bool");
1320+
if ( !map.isEmpty() ) {
1321+
addLog(QString("[WARNING] CPreAttackEventData %1, the following vars are unknown for this type: %2").arg(entryName).arg(map.keys().join("; ")), logWarning);
1322+
}
13171323
}
13181324

13191325
m_eventsAcceptSignals = true;

0 commit comments

Comments
 (0)