Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
József L. Kiss committed Feb 10, 2023
1 parent 5e6a102 commit c21e3f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ConnectorArchicad/AddOn/Sources/AddOn/AttributeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ GSErrCode AttributeManager::GetDefaultMaterial (API_Attribute& attribute, GS::Un
emissionColor.blue = 0x0;

name = "Default Speckle Surface";
ModelInfo::Material material (name, 0.0, ambientColor, emissionColor);
ModelInfo::Material material (name, 0, ambientColor, emissionColor);

return GetMaterial (material, attribute);
}
18 changes: 9 additions & 9 deletions ConnectorArchicad/AddOn/Sources/AddOn/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ GSErrCode CreateAllCutData (const GS::ObjectState& os, GS::UInt32& numberOfCuts,
#ifdef ServerMainVers_2600
switch (element.header.type.typeID) {
#else
switch (element.header.type) {
switch (element.header.typeID) {
#endif
case API_BeamID:
memo->assemblySegmentCuts = (API_AssemblySegmentCutData*) BMAllocatePtr ((element.beam.nCuts) * sizeof (API_AssemblySegmentCutData), ALLOCATE_CLEAR, 0);
Expand Down Expand Up @@ -471,17 +471,17 @@ GSErrCode CreateAllSchemeData (const GS::ObjectState& os, GS::UInt32& numberOfCu
#ifdef ServerMainVers_2600
switch (element.header.type.typeID) {
#else
switch (element.header.type) {
switch (element.header.typeID) {
#endif
case API_BeamID:
case API_BeamID:
memo->assemblySegmentSchemes = (API_AssemblySegmentSchemeData*) BMAllocatePtr ((element.beam.nSchemes) * sizeof (API_AssemblySegmentSchemeData), ALLOCATE_CLEAR, 0);
break;
case API_ColumnID:
break;
case API_ColumnID:
memo->assemblySegmentSchemes = (API_AssemblySegmentSchemeData*) BMAllocatePtr ((element.column.nSchemes) * sizeof (API_AssemblySegmentSchemeData), ALLOCATE_CLEAR, 0);
break;
default: // In case if not beam or column
return Error;
break;
break;
default: // In case if not beam or column
return Error;
break;
}
} else {
return Error;
Expand Down

0 comments on commit c21e3f9

Please sign in to comment.