From 11490c1c8d0f0bfc358616f7640ac811d03b3ab1 Mon Sep 17 00:00:00 2001 From: Pierre Baillargeon Date: Mon, 10 Jun 2024 13:18:57 -0400 Subject: [PATCH] EMSUSD-1358 fix blessing failure Force the viewport to update by moving the camera. --- .../render/vp2RenderDelegate/testVP2RenderDelegateUsdCamera.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegateUsdCamera.py b/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegateUsdCamera.py index 575019e363..a71056c1a4 100644 --- a/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegateUsdCamera.py +++ b/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegateUsdCamera.py @@ -107,6 +107,9 @@ def testStaticUsdCamera(self): clippingAttr = usdCamera.GetAttribute('clippingRange') clippingRange = clippingAttr.Get() clippingAttr.Set(Gf.Vec2f(10, 5000)) + # Translate the camera to force the view to update + cam2Transform3d.translate(0, 0, 0) + cam2Transform3d.translate(-1, 0, 0) self.assertSnapshotClose('%s_cam2_insideNearClipPlane.png' % self._testName) if __name__ == '__main__':