Skip to content

Commit a075101

Browse files
committed
material: Tweaking texture wrap 'repeat'
1 parent 6ce6bcc commit a075101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

urdf_usd_converter/_impl/material.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ def _convert_material(
164164
material_prim, "emissiveColor", "EmissiveTexture", _get_texture_asset_path(material_data.emissive_texture_path, texture_paths, data)
165165
)
166166

167-
# Set the wrap mode to repeat.
168-
_set_wrap_mode(material_prim, "repeat")
169-
170167
# Add the material interface.
171168
result = usdex.core.addPreviewMaterialInterface(material_prim)
172169
if not result:
173170
Tf.RaiseRuntimeError(f'Failed to add material instance to material prim "{material_prim.GetPath()}"')
174171

172+
# Set the wrap mode to repeat.
173+
_set_wrap_mode(material_prim, "repeat")
174+
175175
material_prim.GetPrim().SetInstanceable(True)
176176

177177
return material_prim

0 commit comments

Comments
 (0)