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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user