mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Remove ERR_EXPLAIN from scene/* code
This commit is contained in:
parent
d2a67c9c1f
commit
af5e0fff66
36 changed files with 157 additions and 473 deletions
|
@ -148,11 +148,9 @@ int PopupMenu::_get_mouse_over(const Point2 &p_over) const {
|
|||
void PopupMenu::_activate_submenu(int over) {
|
||||
|
||||
Node *n = get_node(items[over].submenu);
|
||||
ERR_EXPLAIN("Item subnode does not exist: " + items[over].submenu);
|
||||
ERR_FAIL_COND(!n);
|
||||
ERR_FAIL_COND_MSG(!n, "Item subnode does not exist: " + items[over].submenu + ".");
|
||||
Popup *pm = Object::cast_to<Popup>(n);
|
||||
ERR_EXPLAIN("Item subnode is not a Popup: " + items[over].submenu);
|
||||
ERR_FAIL_COND(!pm);
|
||||
ERR_FAIL_COND_MSG(!pm, "Item subnode is not a Popup: " + items[over].submenu + ".");
|
||||
if (pm->is_visible_in_tree())
|
||||
return; //already visible!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue