Skip to content

Commit

Permalink
clear else
Browse files Browse the repository at this point in the history
  • Loading branch information
jginternational committed Oct 27, 2023
1 parent 591b0f8 commit d6a40eb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions kratos.gid/scripts/Writing/WriteSubModelPart.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,12 @@ proc write::getSubModelPartId {cid group} {
set name [write::GetWriteGroupName $group]
set good_name [write::transformGroupName $name]
return $good_name
}
set find [list $cid ${group}]
if {[dict exists $submodelparts $find]} {
return [dict get $submodelparts [list $cid ${group}]]
} {
return 0
} else {
set find [list $cid ${group}]
if {[dict exists $submodelparts $find]} {
return [dict get $submodelparts [list $cid ${group}]]
} {
return 0
}
}
}

0 comments on commit d6a40eb

Please sign in to comment.