Warning fixes and changes for Linux

- Disabled warnings as errors
- Using -Wall for specifying commonly used warnings
- Fixes for many warnings in the engine code
This commit is contained in:
Turánszki János
2025-07-29 19:59:53 +02:00
committed by GitHub
parent 36d314d387
commit 7ecd39dd6e
30 changed files with 176 additions and 158 deletions
+3 -1
View File
@@ -796,7 +796,7 @@ void MaterialWindow::Create(EditorComponent* _editor)
params.description = "Texture";
params.extensions = wi::resourcemanager::GetSupportedImageExtensions();
Entity materialEntity = entity;
wi::helper::FileDialog(params, [this, materialEntity, slot](std::string fileName) {
wi::helper::FileDialog(params, [this, slot](std::string fileName) {
wi::eventhandler::Subscribe_Once(wi::eventhandler::EVENT_THREAD_SAFE_POINT, [=](uint64_t userdata) {
MaterialComponent* material = editor->GetCurrentScene().materials.GetComponent(entity);
wi::resourcemanager::Flags flags = material->GetTextureSlotResourceFlags(MaterialComponent::TEXTURESLOT(slot));
@@ -981,6 +981,8 @@ void MaterialWindow::SetEntity(Entity entity)
clearcoatSlider.SetEnabled(true);
clearcoatRoughnessSlider.SetEnabled(true);
break;
default:
break;
}
sheenRoughnessSlider.SetValue(material->sheenRoughness);
clearcoatSlider.SetValue(material->clearcoat);