### Godot version

eaf306e0b

### System information

ArchLinux x11

### Issue description

Creating points on a path3d doesnt work.

### Steps to reproduce

- Create path3d
- Create a new curve resource
- Click the add point button
- Click anywhere
- No points!

### Minimal reproduction project

‮
ERR_FAIL_COND_V(!p_object || !gui_base, nullptr);
	Ref<Script> scr = p_object->get_script();
	if (scr.is_null() && p_object->is_class("Script")) {
		scr = p_object;
	}
	if (scr.is_valid() && !script_icon_cache.has(scr)) {
		Ref<Script> base_scr = scr;
		while (base_scr.is_valid()) {
			StringName name = EditorNode::get_editor_data().script_class_get_name(base_scr->get_path());
			String icon_path = EditorNode::get_editor_data().script_class_get_icon_path(name);
			Ref<ImageTexture> icon = _load_custom_class_icon(icon_path);
			if (icon.is_valid()) {
				script_icon_cache[scr] = icon;
				return icon;
			}