From 3e9279943b31a7d86ec52e5ba4747d9fd2d51d79 Mon Sep 17 00:00:00 2001 From: David Lanier Date: Mon, 5 Feb 2024 14:30:09 +0100 Subject: [PATCH] Make the tests work when mayausd is not used to build maya hydra --- .../render/mayaToHydra/testStagePayloadsReferences.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/mayaUsd/render/mayaToHydra/testStagePayloadsReferences.py b/test/lib/mayaUsd/render/mayaToHydra/testStagePayloadsReferences.py index 7c7f9cd531..047885dd90 100644 --- a/test/lib/mayaUsd/render/mayaToHydra/testStagePayloadsReferences.py +++ b/test/lib/mayaUsd/render/mayaToHydra/testStagePayloadsReferences.py @@ -20,9 +20,7 @@ import unittest import testUtils import mayaUtils -import usdUtils import ufe -import usdUfe from pxr import Usd, Sdf class TestUsdStagePayloadsAndReferences(mtohUtils.MtohTestCase): #Subclassing mtohUtils.MtohTestCase to be able to call self.assertSnapshotClose @@ -72,6 +70,7 @@ def setUpPayloadScene(self): cmds.file(new=True, force=True) import mayaUsd_createStageWithNewLayer from mayaUsd import lib as mayaUsdLib + import usdUtils self.setHdStormRenderer() @@ -99,7 +98,8 @@ def setUpPayloadScene(self): @unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin(), "Requires Maya USD Plugin.") def test_UsdStagePayloadsOnTheFly(self): import mayaUsd.ufe - + import usdUfe + self.setUpPayloadScene() primUfePath = "|stage1|stageShape1,/A"