Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuvbur committed Aug 25, 2024
1 parent b0f0a14 commit e0e09c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Sources/AddOn/Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,9 @@ bool ParamHelpers::ConvertToProperty (const ParamValue& pvalue, API_Property& pr
if (flag_rec) {
property.isDefault = false;
if (property.value.variantStatus != API_VariantStatusNormal) property.value.variantStatus = API_VariantStatusNormal;
#if !defined(AC_22) || !defined(AC_23)
if (property.status != API_Property_HasValue) property.status = API_Property_HasValue;
#endif
}
return flag_rec;
}
Expand Down
16 changes: 10 additions & 6 deletions Sources/AddOn/Spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ void GetParamToReadFromRule (const SpecRuleDict& rules, ParamDictValue& property
#endif
ParamHelpers::AddValueToParamDictValue (paramToWrite, rawname);
}
}
}
}
}
}
}

Int32 GetElementsForRule (const SpecRule& rule, const ParamDictElement& paramToRead, ElementDict& elements)
{
Expand Down Expand Up @@ -471,7 +471,11 @@ GSErrCode PlaceElements (GS::Array<ElementDict>& elementstocreate, ParamDictValu
{
API_Element element = {};
API_ElementMemo memo = {};
element.header.typeID = API_ElemTypeID::API_ObjectID;
#if defined AC_26 || defined AC_27 || defined AC_28
element.header.type.typeID = API_ObjectID;
#else
element.header.typeID = API_ObjectID;
#endif
GSErrCode err = ACAPI_Element_GetDefaults (&element, &memo);
double dx = 0; double dy = 0;
GS::Array <API_AddParType> params;
Expand Down Expand Up @@ -588,7 +592,7 @@ GSErrCode PlaceElements (GS::Array<ElementDict>& elementstocreate, ParamDictValu
pos.y += 2 * dy;
API_Guid groupGuid = APINULLGuid;
err = ACAPI_ElementGroup_Create (group, &groupGuid);
}
}
return NoError;
});
ACAPI_DisposeElemMemoHdls (&memo);
Expand All @@ -601,4 +605,4 @@ GSErrCode PlaceElements (GS::Array<ElementDict>& elementstocreate, ParamDictValu
}
return NoError;
}
}
}

0 comments on commit e0e09c7

Please sign in to comment.