summaryrefslogtreecommitdiff
path: root/obj_neokclcreate_import.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
committerOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
commitef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5 (patch)
tree88c06847d16e29acdd743066b0781fc17ebde3eb /obj_neokclcreate_import.py
parent5fb5906f45a20652b8cbadc5657df9ca506f11db (diff)
downloadblenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.tar.gz
blenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.zip
all the stuff
Diffstat (limited to 'obj_neokclcreate_import.py')
-rw-r--r--obj_neokclcreate_import.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obj_neokclcreate_import.py b/obj_neokclcreate_import.py
index 1b63633..975112d 100644
--- a/obj_neokclcreate_import.py
+++ b/obj_neokclcreate_import.py
@@ -21,7 +21,7 @@ def import_obj_neokclcreate(context, filepath):
if (o.select == True):
obj = o
break
- blender_funcs.select_obj(scene, obj, False)
+ blender_funcs.select_obj(obj, False, "OBJECT")
obj.scale = obj.scale / 100
bpy.ops.object.transform_apply(location = True, rotation = True, scale = True)
@@ -35,6 +35,7 @@ def import_obj_neokclcreate(context, filepath):
cur_mat_name = re.sub("^(.*?)\| ", "", mat.name)
# iterate over all the mesh faces
for face in obj.data.polygons:
+ print(face)
face_mat = obj.material_slots[face.material_index]
face_mat_name = re.sub("^(.*?)\| ", "", face_mat.name)
# material with the same name found
@@ -65,7 +66,6 @@ from bpy.props import StringProperty, BoolProperty, EnumProperty
from bpy.types import Operator
class import_neokclcreate_obj(Operator, ExportHelper):
- """Import a Collada file from SuperBMD (SuperBMD only)"""
bl_idname = "import_scene.neokclcreate_obj"
bl_label = "Import NeoKCLCreate OBJ (.OBJ)"