Closed nxkb closed 5 years ago
Hi @nxkb - some tests are failing for us when we run against develop - can you please confirm whether everything is passing for you or not? Cheers!
@nxkb here is our test output
/scratch/dev/AL_USDMaya/src/plugin/AL_USDMayaTestPlugin/AL/usdmaya/nodes/test_ActiveInactive.cpp:732: Failure
Value of: bool(sl.add("fred:pCube1"))
Actual: false
Expected: true
/scratch/dev/AL_USDMaya/src/plugin/AL_USDMayaTestPlugin/AL/usdmaya/nodes/test_ActiveInactive.cpp:743: Failure
Value of: bool(sl.add("fred:pCube1"))
Actual: false
Expected: true
File read in 0.0092 seconds.
File read in 0.0092 seconds.
/scratch/dev/AL_USDMaya/src/plugin/AL_USDMayaTestPlugin/AL/usdmaya/nodes/test_ActiveInactive.cpp:746: Failure
Value of: bool(sl.add("fred1:pCube1"))
Actual: false
Expected: true
Digest:
19:16:51 [AL_USDMaya] [ FAILED ] 1 test, listed below:
19:16:51 [AL_USDMaya] [ FAILED ] ActiveInactive.disable
19:16:51 [AL_USDMaya]
19:16:51 [AL_USDMaya] 1 FAILED TEST
19:16:51 [AL_USDMaya] __
19:16:51 [AL_USDMaya] /x_)
19:16:51 [AL_USDMaya] _/\/\/\_/ /
19:16:51 [AL_USDMaya] _| /
19:16:51 [AL_USDMaya] _| ( | ( |
19:16:51 [AL_USDMaya] /__.-'|_|--|_|
Ah, our mistake - this test made use of another internal modification we've made (adding a "pauseUpdates" attribute), which isn't part of this PR.
We'll modify the test to not use that...
thanks @elrond79
hi @murphyeoin, I've updated the tests so they should be passing on develop again!
Description
Combine the similar logic from update() and LoadMayaReference() to make the maya reference translator more resilient to imported references and stage changes.
The main change is just a reordering of the logic. I consolidated the logic for finding the reference node into update() and only call "LoadMayaReference" if we need to create a fresh reference. update() becomes the main entry point for initial creation and updating and holds all the logic for what to do. I didn't see any good reason for the code paths to be different and it meant that some situations were not handled in one versus the other.
Fixed
Checklist (Please do not remove this line)