From 945d93b46a138048eac880d0d3de9313dfbcc387 Mon Sep 17 00:00:00 2001 From: Adam Beili Date: Fri, 4 Nov 2022 09:37:28 -0700 Subject: [PATCH] fixed indentation --- code/AssetLib/glTF2/glTF2Asset.h | 8 ++++---- code/AssetLib/glTF2/glTF2Asset.inl | 4 ++-- code/AssetLib/glTF2/glTF2AssetWriter.inl | 6 +++--- code/AssetLib/glTF2/glTF2Exporter.cpp | 4 ++-- code/AssetLib/glTF2/glTF2Exporter.h | 2 +- code/AssetLib/glTF2/glTF2Importer.cpp | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/AssetLib/glTF2/glTF2Asset.h b/code/AssetLib/glTF2/glTF2Asset.h index 4349274d8..b9e19205d 100644 --- a/code/AssetLib/glTF2/glTF2Asset.h +++ b/code/AssetLib/glTF2/glTF2Asset.h @@ -840,8 +840,8 @@ struct Material : public Object { //extension: KHR_materials_ior Nullable materialIOR; - - //extension: KHR_materials_emissive_strength + + //extension: KHR_materials_emissive_strength Nullable materialEmissiveStrength; //extension: KHR_materials_unlit @@ -1117,7 +1117,7 @@ public: bool KHR_materials_transmission; bool KHR_materials_volume; bool KHR_materials_ior; - bool KHR_materials_emissive_strength; + bool KHR_materials_emissive_strength; bool KHR_draco_mesh_compression; bool FB_ngon_encoding; bool KHR_texture_basisu; @@ -1132,7 +1132,7 @@ public: KHR_materials_transmission(false), KHR_materials_volume(false), KHR_materials_ior(false), - KHR_materials_emissive_strength(false), + KHR_materials_emissive_strength(false), KHR_draco_mesh_compression(false), FB_ngon_encoding(false), KHR_texture_basisu(false) { diff --git a/code/AssetLib/glTF2/glTF2Asset.inl b/code/AssetLib/glTF2/glTF2Asset.inl index e13dd226e..bb4be88da 100644 --- a/code/AssetLib/glTF2/glTF2Asset.inl +++ b/code/AssetLib/glTF2/glTF2Asset.inl @@ -1313,7 +1313,7 @@ inline void Material::Read(Value &material, Asset &r) { } } - if (r.extensionsUsed.KHR_materials_emissive_strength) { + if (r.extensionsUsed.KHR_materials_emissive_strength) { if (Value *curMaterialEmissiveStrength = FindObject(*extensions, "KHR_materials_emissive_strength")) { MaterialEmissiveStrength emissiveStrength; @@ -2041,7 +2041,7 @@ inline void Asset::ReadExtensionsUsed(Document &doc) { CHECK_EXT(KHR_materials_transmission); CHECK_EXT(KHR_materials_volume); CHECK_EXT(KHR_materials_ior); - CHECK_EXT(KHR_materials_emissive_strength); + CHECK_EXT(KHR_materials_emissive_strength); CHECK_EXT(KHR_draco_mesh_compression); CHECK_EXT(KHR_texture_basisu); diff --git a/code/AssetLib/glTF2/glTF2AssetWriter.inl b/code/AssetLib/glTF2/glTF2AssetWriter.inl index 249c738cd..6b776dee9 100644 --- a/code/AssetLib/glTF2/glTF2AssetWriter.inl +++ b/code/AssetLib/glTF2/glTF2AssetWriter.inl @@ -511,7 +511,7 @@ namespace glTF2 { } } - if (m.materialEmissiveStrength.isPresent) { + if (m.materialEmissiveStrength.isPresent) { Value materialEmissiveStrength(rapidjson::Type::kObjectType); MaterialEmissiveStrength &emissiveStrength = m.materialEmissiveStrength.value; @@ -520,8 +520,8 @@ namespace glTF2 { WriteFloat(materialEmissiveStrength, emissiveStrength.emissiveStrength, "emissiveStrength", w.mAl); } - if (!emissiveStrength.ObjectEmpty()) { - exts.AddMember("KHR_materials_emissive_strength", emissiveStrength, w.mAl); + if (!materialEmissiveStrength.ObjectEmpty()) { + exts.AddMember("KHR_materials_emissive_strength", materialEmissiveStrength, w.mAl); } } diff --git a/code/AssetLib/glTF2/glTF2Exporter.cpp b/code/AssetLib/glTF2/glTF2Exporter.cpp index 2954f9f53..728249676 100644 --- a/code/AssetLib/glTF2/glTF2Exporter.cpp +++ b/code/AssetLib/glTF2/glTF2Exporter.cpp @@ -867,8 +867,8 @@ void glTF2Exporter::ExportMaterials() { mAsset->extensionsUsed.KHR_materials_ior = true; m->materialIOR = Nullable(ior); } - - MaterialEmissiveStrength emissiveStrength; + + MaterialEmissiveStrength emissiveStrength; if (GetMatEmissiveStrength(mat, emissiveStrength)) { mAsset->extensionsUsed.KHR_materials_emissive_strength = true; m->materialEmissiveStrength = Nullable(emissiveStrength); diff --git a/code/AssetLib/glTF2/glTF2Exporter.h b/code/AssetLib/glTF2/glTF2Exporter.h index 505e331a2..425180b14 100644 --- a/code/AssetLib/glTF2/glTF2Exporter.h +++ b/code/AssetLib/glTF2/glTF2Exporter.h @@ -122,7 +122,7 @@ protected: bool GetMatTransmission(const aiMaterial &mat, glTF2::MaterialTransmission &transmission); bool GetMatVolume(const aiMaterial &mat, glTF2::MaterialVolume &volume); bool GetMatIOR(const aiMaterial &mat, glTF2::MaterialIOR &ior); - bool GetMatEmissiveStrength(const aiMaterial &mat, glTF2::MaterialEmissiveStrength &emissiveStrength); + bool GetMatEmissiveStrength(const aiMaterial &mat, glTF2::MaterialEmissiveStrength &emissiveStrength); void ExportMetadata(); void ExportMaterials(); void ExportMeshes(); diff --git a/code/AssetLib/glTF2/glTF2Importer.cpp b/code/AssetLib/glTF2/glTF2Importer.cpp index 7b0bf4b0b..7d3a4b9fe 100644 --- a/code/AssetLib/glTF2/glTF2Importer.cpp +++ b/code/AssetLib/glTF2/glTF2Importer.cpp @@ -357,7 +357,7 @@ static aiMaterial *ImportMaterial(std::vector &embeddedTexIdxs, Asset &r, M aimat->AddProperty(&ior.ior, 1, AI_MATKEY_REFRACTI); } - // KHR_materials_emissive_strength + // KHR_materials_emissive_strength if (mat.materialEmissiveStrength.isPresent) { MaterialEmissiveStrength &emissiveStrength = mat.materialEmissiveStrength.value;