Skip to content

Commit d6a40eb

Browse files
clear else
1 parent 591b0f8 commit d6a40eb

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

kratos.gid/scripts/Writing/WriteSubModelPart.tcl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,12 @@ proc write::getSubModelPartId {cid group} {
253253
set name [write::GetWriteGroupName $group]
254254
set good_name [write::transformGroupName $name]
255255
return $good_name
256-
}
257-
set find [list $cid ${group}]
258-
if {[dict exists $submodelparts $find]} {
259-
return [dict get $submodelparts [list $cid ${group}]]
260-
} {
261-
return 0
256+
} else {
257+
set find [list $cid ${group}]
258+
if {[dict exists $submodelparts $find]} {
259+
return [dict get $submodelparts [list $cid ${group}]]
260+
} {
261+
return 0
262+
}
262263
}
263264
}

0 commit comments

Comments
 (0)