Skip to content

Commit

Permalink
fix(ObjectLoader): don't validate meshes when importing obj
Browse files Browse the repository at this point in the history
This should fix the broken normals.
  • Loading branch information
Griperis committed Aug 29, 2024
1 parent 4645722 commit f99fb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blenderproc/python/loader/ObjectLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def load_obj(filepath: str, cached_objects: Optional[Dict[str, List[MeshObject]]
previously_selected_objects = bpy.context.selected_objects
if filepath.endswith(".obj"):
# load an .obj file:
bpy.ops.wm.obj_import(filepath=filepath, **kwargs)
bpy.ops.wm.obj_import(filepath=filepath, **kwargs, validate_meshes=False)
elif filepath.endswith(".ply"):
PLY_TEXTURE_FILE_COMMENT = "comment TextureFile "
model_name = os.path.basename(filepath)
Expand Down

0 comments on commit f99fb32

Please sign in to comment.