You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Default sleep threshold for all objects -- see https://docs.omniverse.nvidia.com/extensions/latest/ext_physics/simulation-control/physics-settings.html?highlight=sleep#sleeping
28
25
# Mass-normalized kinetic energy threshold below which an actor may go to sleep
29
26
m.DEFAULT_SLEEP_THRESHOLD=0.00005
@@ -262,25 +259,7 @@ def update_links(self):
262
259
263
260
# Apply the V-Ray to PBR material change if request by the macro
264
261
ifgm.USE_PBR_MATERIALS:
265
-
# Find the material prim that has the link's name in it
266
-
link_pbr_material_pattern=f"__{link_name}_pbr"
267
-
looks_prim=self._prim.GetChild("Looks")
268
-
ifnotlooks_prim:
269
-
log.debug("Could not find Looks prim for", self.prim_path)
270
-
else:
271
-
formtl_priminlooks_prim.GetChildren():
272
-
mtl_prim_name=mtl_prim.GetName()
273
-
iflink_pbr_material_patterninmtl_prim_name:
274
-
# Bind that material and stop
275
-
lazy.omni.kit.commands.execute(
276
-
"BindMaterialCommand",
277
-
prim_path=prim.GetPrimPath().__str__(),
278
-
material_path=mtl_prim.GetPrimPath().__str__(),
279
-
strength=None,
280
-
)
281
-
break
282
-
else:
283
-
log.warning("Could not find PBR material for link", link_name, "of", self.prim_path)
0 commit comments