Hi, we are getting several warnings from MeshTool on unreal engine startup about properties that are not initialized properly. This is because of UStructs that are missing default values, since they do not get zero initialized they would contain garbage data outside of UClass objects. The solution to most of these are to just write = nullptr or another default value in the .h file or constructor. Most of all is that it would be nice to get rid of this chunk of warnings on editor startup as they hide other more problematic stuff.
LogClass: Display: FloatProperty FMTSubdividedQuadVertex::VertexBinormalSign is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: IntProperty FMTSubdividedQuadVertex::VertexPositionIndex is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: IntProperty FMTSubdividedWireEdge::EdgeVertex0PositionIndex is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: IntProperty FMTSubdividedWireEdge::EdgeVertex1PositionIndex is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: StructProperty FMTSubdividedQuadVertex::TextureCoordinate0 is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: StructProperty FMTSubdividedQuadVertex::TextureCoordinate1 is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: StructProperty FMTSubdividedQuadVertex::VertexColor is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: StructProperty FMTSubdividedQuadVertex::VertexNormal is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Display: StructProperty FMTSubdividedQuadVertex::VertexTangent is not initialized properly. Module:MeshToolRuntime File:Public/Adapters/EditableMeshTypesAdapter.h
LogClass: Warning: ObjectProperty FMTTrimSheetMappingEntry::Material is not initialized properly even though its struct probably has a custom default constructor. Module:MeshToolEditor File:Private/TrimSheetEditor/DataAssets/TrimSheetMapping.h
LogClass: Warning: ObjectProperty FMTTrimSheetMappingEntry::TrimSheet is not initialized properly even though its struct probably has a custom default constructor. Module:MeshToolEditor File:Private/TrimSheetEditor/DataAssets/TrimSheetMapping.h
LogClass: Warning: ObjectProperty FMTTrimSheetMappingRow::Material is not initialized properly even though its struct probably has a custom default constructor. Module:MeshToolEditor File:Private/TrimSheetEditor/DataAssets/TrimSheetMapping.h
LogClass: Warning: ObjectProperty FMTTrimSheetMappingRow::TrimSheet is not initialized properly even though its struct probably has a custom default constructor. Module:MeshToolEditor File:Private/TrimSheetEditor/DataAssets/TrimSheetMapping.h
LogClass: Warning: StructProperty FTrimSheetGeometryShape::Color is not initialized properly even though its struct probably has a custom default constructor. Module:MeshToolRuntime File:Public/TrimSheet/MTTrimSheet.h
Hi, we are getting several warnings from MeshTool on unreal engine startup about properties that are not initialized properly. This is because of UStructs that are missing default values, since they do not get zero initialized they would contain garbage data outside of UClass objects. The solution to most of these are to just write
= nullptr
or another default value in the .h file or constructor. Most of all is that it would be nice to get rid of this chunk of warnings on editor startup as they hide other more problematic stuff.