diff --git a/src/AtomsGaffer/AtomsCrowdGenerator.cpp b/src/AtomsGaffer/AtomsCrowdGenerator.cpp index 6067a20..eb6bdbd 100644 --- a/src/AtomsGaffer/AtomsCrowdGenerator.cpp +++ b/src/AtomsGaffer/AtomsCrowdGenerator.cpp @@ -1008,20 +1008,27 @@ void AtomsCrowdGenerator::hashBranchChildNames( const ScenePath &parentPath, con else if( branchPath.size() == 1 ) { // "/agents" + BranchCreator::hashBranchChildNames( parentPath, branchPath, context, h ); + agentChildNamesHash( parentPath, context, h ); + } + else if( branchPath.size() == 2 ) + { + // "/agents/" BranchCreator::hashBranchChildNames( parentPath, branchPath, context, h ); agentChildNamesHash( parentPath, context, h ); h.append( branchPath.back() ); } - else if( branchPath.size() <= 3 ) + else if( branchPath.size() == 3 ) { - // "/agents/" or "/agents//" + // "/agents//" BranchCreator::hashBranchChildNames( parentPath, branchPath, context, h ); agentChildNamesHash( parentPath, context, h ); + h.append( branchPath[1] ); h.append( branchPath.back() ); } else { - // "/agents///..." + // "/agents////..." AgentScope scope( context, branchPath ); h = variationsPlug()->childNamesPlug()->hash(); }