Skip to content

Commit

Permalink
Remove BNZeroMemory calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jul 1, 2024
1 parent 7815dbc commit ab702a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/DotbimImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
static API_AttributeIndex CreateMaterial (const Gfx::Color& color, const GS::UniString& nameTemplate)
{
API_Attribute material = {};
BNZeroMemory (&material, sizeof (API_Attribute));

material.header.typeID = API_MaterialID;
GS::UniString colorString = "(" +
Expand Down Expand Up @@ -151,8 +150,7 @@ static GSErrCode ImportDotbimElement (
ACAPI_Body_Finish (bodyData, &bodyMemo.morphBody, &bodyMemo.morphMaterialMapTable);
ACAPI_Body_Dispose (&bodyData);

API_Element morphElement;
BNZeroMemory (&morphElement, sizeof (API_Element));
API_Element morphElement = {};
SetAPIElementType (morphElement, API_MorphID);
err = ACAPI_Element_GetDefaults (&morphElement, nullptr);
if (err != NoError) {
Expand Down Expand Up @@ -240,7 +238,7 @@ static bool HasRightToCreateMaterials ()
#endif
if (err != NoError) {
return false;
}
}
return hasRight;
}

Expand Down

0 comments on commit ab702a2

Please sign in to comment.