Fixed SHRawAnimInspector warnings

This commit is contained in:
Kah Wei 2023-03-02 17:44:28 +08:00
parent 6779f48b5a
commit 69fa0d4da0
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ namespace SHADE
SHEditorUI::PopID(); SHEditorUI::PopID();
// Invalid values // Invalid values
const bool INVALID_CONFIG = newAssetName.empty() || firstIndex > lastIndex || lastIndex < firstIndex; const bool INVALID_CONFIG = newAssetName.empty() || firstIndex > lastIndex;
// Buttons // Buttons
ImGui::BeginDisabled(INVALID_CONFIG); ImGui::BeginDisabled(INVALID_CONFIG);

View File

@ -43,8 +43,8 @@ namespace SHADE
/* Data Members */ /* Data Members */
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/
std::string newAssetName; std::string newAssetName;
int firstIndex; int firstIndex = 0;
int lastIndex; int lastIndex = 0;
Handle<SHRawAnimation> rawAnimation; Handle<SHRawAnimation> rawAnimation;
}; };