Skip to content

Commit

Permalink
Merge pull request #1003 from DLR-RM/iss_1001_uv_unwrap_fix
Browse files Browse the repository at this point in the history
fix(mesh): Fixes uv mapping by selecting all faces
  • Loading branch information
cornerfarmer authored Nov 23, 2023
2 parents dcdfd92 + 64a327f commit f2e77c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blenderproc/python/types/MeshObjectUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ def add_uv_mapping(self, projection: str, overwrite: bool = False):
"""
if not self.has_uv_mapping() or overwrite:
self.edit_mode()
bpy.ops.mesh.select_all(action='SELECT')
if projection == "cube":
bpy.ops.uv.cube_project()
elif projection == "cylinder":
Expand Down

0 comments on commit f2e77c0

Please sign in to comment.