Skip to content

Commit

Permalink
Fix #138
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Sep 14, 2024
1 parent a4452b4 commit 7dc55c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cad_source/zcad/gui/odjectinspector/uzcoimultiobjects.pas
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@ procedure TMSEditor.CreateMultiPropertys;
for j:=0 to pv^.GetExtensionsCount-1 do begin
Extender:=pv^.GetExtension(j);
ObjIDWithExtender.ObjID:=pv^.GetObjType;
ObjIDWithExtender.ExtenderClass:=typeof(Extender);
if Extender=nil then
ObjIDWithExtender.ExtenderClass:=nil
else
ObjIDWithExtender.ExtenderClass:=typeof(Extender);
if MultiPropertiesManager.MultiPropertyVector[i].MPObjectsData.tryGetValue(ObjIDWithExtender,MultiPropertyDataForObjects)then begin
if @MultiPropertyDataForObjects.EntBeforeIterateProc<>nil then begin
ChangedData:=CreateChangedData(Extender,MultiPropertyDataForObjects.GSData);
Expand Down Expand Up @@ -579,7 +582,10 @@ procedure TMSEditor.CreateMultiPropertys;
for j:=0 to pv^.GetExtensionsCount-1 do begin
Extender:=pv^.GetExtension(j);
ObjIDWithExtender.ObjID:=pv^.GetObjType;
ObjIDWithExtender.ExtenderClass:=typeof(Extender);
if Extender=nil then
ObjIDWithExtender.ExtenderClass:=nil
else
ObjIDWithExtender.ExtenderClass:=typeof(Extender);
if MultiPropertiesManager.MultiPropertyVector[i].MPObjectsData.tryGetValue(ObjIDWithExtender,MultiPropertyDataForObjects)then begin
if @MultiPropertyDataForObjects.EntIterateProc<>nil then begin
ChangedData:=CreateChangedData(Extender,MultiPropertyDataForObjects.GSData);
Expand Down

0 comments on commit 7dc55c8

Please sign in to comment.