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:
parent
408475dbbd
commit
05d548da29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user