Skip to content

Commit

Permalink
Fix typed array error
Browse files Browse the repository at this point in the history
Should fix SirRamEsq#150.
  • Loading branch information
mphe committed May 17, 2024
1 parent ba99ada commit 71a9d7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/rmsmartshape/shapes/index_map.gd
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ static func index_map_array_sort_by_object(imaps: Array) -> Dictionary:
var dict := {}
for imap: SS2D_IndexMap in imaps:
if not dict.has(imap.object):
dict[imap.object] = [ imap ]
var arr: Array[SS2D_IndexMap] = [ imap ]
dict[imap.object] = arr
else:
var arr: Array[SS2D_IndexMap] = dict[imap.object]
arr.push_back(imap)
Expand Down

0 comments on commit 71a9d7a

Please sign in to comment.