Bug Report - Error when editing eye material (AttributeError: 'NoneType' object has no attribute 'name') #36

Open
opened 2026-02-12 05:24:52 +00:00 by johnkoner · 0 comments

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!

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!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kkbp-dev/KKBP_Importer#36
No description provided.