From e678d7f657a5d98868a884d09b5d7405dd15bc7e Mon Sep 17 00:00:00 2001 From: debloip Date: Mon, 21 Oct 2024 15:19:06 -0400 Subject: [PATCH] HYDRA-1098 : Remove superflous selection clears --- test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py b/test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py index 187bd9fe2..9580dbb97 100644 --- a/test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py +++ b/test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py @@ -243,38 +243,33 @@ def test_UsdPolygons(self): capsuleXform = UsdGeom.Xform.Define(stage, "/" + capsuleName + "Xform") capsuleXform.AddTranslateOp().Set(value=(6, 0, 0)) UsdGeom.Capsule.Define(stage, str(capsuleXform.GetPath()) + "/" + capsuleName) - cmds.select(clear=True) coneName = "UsdCone" coneXform = UsdGeom.Xform.Define(stage, "/" + coneName + "Xform") coneXform.AddTranslateOp().Set(value=(2, 0, -2)) UsdGeom.Cone.Define(stage, str(coneXform.GetPath()) + "/" + coneName) - cmds.select(clear=True) cubeName = "UsdCube" cubeXform = UsdGeom.Xform.Define(stage, "/" + cubeName + "Xform") cubeXform.AddTranslateOp().Set(value=(-3, 0, -3)) UsdGeom.Cube.Define(stage, str(cubeXform.GetPath()) + "/" + cubeName) - cmds.select(clear=True) cylinderName = "UsdCylinder" cylinderXform = UsdGeom.Xform.Define(stage, "/" + cylinderName + "Xform") cylinderXform.AddTranslateOp().Set(value=(-2, 0, 2)) UsdGeom.Cylinder.Define(stage, str(cylinderXform.GetPath()) + "/" + cylinderName) - cmds.select(clear=True) sphereName = "UsdSphere" sphereXform = UsdGeom.Xform.Define(stage, "/" + sphereName + "Xform") sphereXform.AddTranslateOp().Set(value=(0, 0, 6)) UsdGeom.Sphere.Define(stage, str(sphereXform.GetPath()) + "/" + sphereName) - cmds.select(clear=True) torusName = cmds.polyTorus() cmds.move(3, 0, 3) mayaUsd.lib.PrimUpdaterManager.duplicate(cmds.ls(torusName[0], long=True)[0], stagePath) cmds.delete(torusName) - cmds.select(clear=True) + cmds.select(clear=True) self.checkFilter("polygons_USD", kExcludeMeshes, 10) def test_UsdNurbsCurves(self):