Deleting entities is broken

Hi,

I don’t really have anything else to say, I have a simple project here where one button is attempting to delete the other and it throws an error.

https://playcanvas.com/project/568450/overview/button-deletion-test

Clicking the button on the left throws this error: Uncaught TypeError: Cannot read property 'setParameter' of null

Yes, that looks like it could be a bug, I’ve raised an issue here:

Hey, thanks for taking a look so quick after I posted the issue! And on a Sunday too. You’re the man! :+1: