mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Fix crash when setting Material's next pass to itself
This commit is contained in:
parent
5d09877da8
commit
a6e51c8aa1
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@
|
|||
|
||||
void Material::set_next_pass(const Ref<Material> &p_pass) {
|
||||
|
||||
ERR_FAIL_COND(p_pass == this);
|
||||
|
||||
if (next_pass == p_pass)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue