mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Remove ERR_EXPLAIN from scene/* code
This commit is contained in:
@@ -39,10 +39,7 @@
|
||||
void Material::set_next_pass(const Ref<Material> &p_pass) {
|
||||
|
||||
for (Ref<Material> pass_child = p_pass; pass_child != NULL; pass_child = pass_child->get_next_pass()) {
|
||||
if (pass_child == this) {
|
||||
ERR_EXPLAIN("Can't set as next_pass one of its parents to prevent crashes due to recursive loop.");
|
||||
ERR_FAIL_COND(pass_child == this);
|
||||
}
|
||||
ERR_FAIL_COND_MSG(pass_child == this, "Can't set as next_pass one of its parents to prevent crashes due to recursive loop.");
|
||||
}
|
||||
|
||||
if (next_pass == p_pass)
|
||||
|
||||
Reference in New Issue
Block a user