You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -817,7 +817,7 @@ void ControlEditorToolbar::_container_flags_selected(int p_flags, bool p_vertica
|
||||
}
|
||||
|
||||
Vector2 ControlEditorToolbar::_position_to_anchor(const Control *p_control, Vector2 position) {
|
||||
ERR_FAIL_COND_V(!p_control, Vector2());
|
||||
ERR_FAIL_NULL_V(p_control, Vector2());
|
||||
|
||||
Rect2 parent_rect = p_control->get_parent_anchorable_rect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user