1
0
mirror of https://github.com/drewcassidy/TexTools-Blender synced 2024-09-01 14:54:44 +00:00

Fix problems with collection

This commit is contained in:
SavMartin 2019-06-16 14:34:26 +01:00 committed by GitHub
parent 408475dbbd
commit 05d548da29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ def get_set_name_base(obj):
return remove_digits(obj.parent.name).lower()
# Reference group name as base name
elif len(obj.users_collection) == 1:
elif len(obj.users_collection) == 2:
return remove_digits(obj.users_collection[0].name).lower()
# Use Object name
@ -602,4 +602,4 @@ def get_image_material(image):
slot.texture = texture
slot.mapping = 'FLAT'
# return material
# return material