small fixes

This commit is contained in:
Hang Yin 2024-05-28 11:52:59 -07:00
parent 2ac772400a
commit 2b69b8ff17
1 changed files with 2 additions and 2 deletions

View File

@ -597,7 +597,7 @@ class VisionSensor(BaseSensor):
# Also update render product and update all annotators
old_render_product = self._render_product
new_render_product = lazy.omni.replicator.core.create.render_product(self._prim_path, (width, height))
new_render_product = lazy.omni.replicator.core.create.render_product(self.prim_path, (width, height))
for annotator in self._annotators.values():
annotator.detach([old_render_product.path])
annotator.attach([new_render_product])
@ -630,7 +630,7 @@ class VisionSensor(BaseSensor):
# Also update render product and update all annotators
old_render_product = self._render_product
new_render_product = lazy.omni.replicator.core.create.render_product(self._prim_path, (width, height))
new_render_product = lazy.omni.replicator.core.create.render_product(self.prim_path, (width, height))
for annotator in self._annotators.values():
annotator.detach([old_render_product.path])
annotator.attach([new_render_product])