Merge pull request #1434 from birarda/master

notify for node kill on NodeList clear, remove double sound
This commit is contained in:
ZappoMan 2014-01-02 11:43:24 -08:00
commit f5433c8a44
2 changed files with 4 additions and 4 deletions

View file

@ -127,12 +127,12 @@ void Hand::simulateToyBall(PalmData& palm, const glm::vec3& fingerTipPosition, f
//printf(">>>>>>> caught... handID:%d particle ID:%d _toyBallInHand[handID] = true\n", handID, closestParticle->getID());
_ballParticleEditHandles[handID] = caughtParticle;
caughtParticle = NULL;
// Play a catch sound!
// set the position of the catch sound to the new position of the ball
_catchInjector.setPosition(targetPosition);
// inject the catch sound to the mixer and play it locally
_catchInjector.injectViaThread(app->getAudio());
app->getAudio()->startDrumSound(1.0, 300, 0.75, 0.015);
}
}

View file

@ -294,9 +294,9 @@ void NodeList::clear() {
Node* node = nodeBucket[i % NODES_PER_BUCKET];
node->lock();
delete node;
notifyHooksOfKilledNode(&*node);
node = NULL;
delete node;
}
_numNodes = 0;