small fixes
This commit is contained in:
parent
2ac772400a
commit
2b69b8ff17
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue