Bug Report - Error when editing eye material (AttributeError: 'NoneType' object has no attribute 'name') #36
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kkbp-dev/KKBP_Importer#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, I would like to report a bug.
Environment:
Blender 5.0.1
KKBP Importer 9.0.0
KKBP Exporter 5.0
Character: HarunoChika
Issue:
When I selected the KK cf_m_hitomi_00_cf_Ohitomi_R02 (eye) material and clicked "Edit Material," I encountered the following error message:
text
Python: Traceback (most recent call last):
File "C:\Users\ko940\Downloads\Compressed\blender-5.0.1-windows-x64\portable\extensions\user_default\kkbp\extras\editmaterial.py", line 80, in execute
self.create_dark_textures(new_material.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ko940\Downloads\Compressed\blender-5.0.1-windows-x64\portable\extensions\user_default\kkbp\extras\editmaterial.py", line 477, in create_dark_textures
if maintex.name != 'Template: Placeholder' and maintex.name != 'cf_m_tang_CM.png':
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
After consulting with Google Gemini, it seems that the plugin fails to find and load the image texture from the folder. It appears that the eye materials might have a different naming convention compared to other materials, causing the loader to miss them.
I really appreciate your work on this plugin and enjoy using it. Thank you for your continued support!