You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fix crash when setting Material's next pass to itself
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user