Skip to content

Commit

Permalink
Properties: Only delimit ObjectTypes so that we dont disturb possible…
Browse files Browse the repository at this point in the history
… Tag attributes
  • Loading branch information
loonaticx committed Jul 12, 2024
1 parent ebc3ccd commit 1f7c407
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,8 +1628,11 @@ def build_tree(self, context, parent, inv_matrix=None, under_dart=False):
for name, value in self.properties.items():
# We can't have multiple properties with the same name "ObjectType"
# So we need to add a delimiter
bpy.context.object[name + str(index)] = value
index += 1
if name.upper() == "OBJECTTYPE":
bpy.context.object[name + str(index)] = value
index += 1
else:
bpy.context.object[name] = value

if self.shape_keys:
# Add the basis key first.
Expand Down

0 comments on commit 1f7c407

Please sign in to comment.