Skip to content

Commit

Permalink
Merge pull request #3922 from dj-mcg/pr/Copy_Test_File
Browse files Browse the repository at this point in the history
Copy a test file for use in overwrite testing
  • Loading branch information
seando-adsk authored Sep 20, 2024
2 parents 901f76d + 890ed46 commit 565a97f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/lib/ufe/testReferenceCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def testReloadReferencesCommands(self):

# paths to the files used in this test
newFile = testUtils.getTestScene('twoSpheres', 'spherexform.usda')
oldFile = testUtils.getTestScene('twoSpheres', 'sphere.usda')
oldFile = testUtils.getTestScene('twoSpheres', 'sphere_ext.usda')
bkFile = testUtils.getTestScene('twoSpheres', 'sphere_bk.usda')
refFile = testUtils.getTestScene('twoSpheres', 'spheres_ref.usda')

Expand Down
21 changes: 21 additions & 0 deletions test/testSamples/twoSpheres/sphere_ext.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#usda 1.0
(
defaultPrim = "sphereXform"
)

def Xform "sphereXform"
{
double3 xformOp:translate = (10, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]

def Xform "test"
{
}

def Sphere "sphere"
{
float3[] extent = [(-2, -2, -2), (2, 2, 2)]
color3f[] primvars:displayColor = [(0, 1, 0)]
double radius = 2
}
}
2 changes: 1 addition & 1 deletion test/testSamples/twoSpheres/spheres_ref.usda
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
)

def Xform "Xform1" (
prepend references = @sphere.usda@
prepend references = @sphere_ext.usda@
)
{
}
Expand Down

0 comments on commit 565a97f

Please sign in to comment.