Crash fixes for material and animtree

This commit is contained in:
Juan Linietsky 2018-08-20 16:35:36 -03:00
parent c1bd768ca2
commit 031f763d4f
5 changed files with 23 additions and 8 deletions

View file

@ -34,7 +34,7 @@
void Material::set_next_pass(const Ref<Material> &p_pass) {
ERR_FAIL_COND(p_pass == this);
ERR_FAIL_COND(p_pass.ptr() == this);
if (next_pass == p_pass)
return;