Change _can_handle and _edit virtual methods to take Object*

This commit is contained in:
Marc Gilleron
2022-09-19 17:39:35 +01:00
committed by Rémi Verschelde
parent f0c9ed4b55
commit d2b4e30058
5 changed files with 7 additions and 11 deletions

View File

@ -662,11 +662,7 @@ void EditorPlugin::make_visible(bool p_visible) {
}
void EditorPlugin::edit(Object *p_object) {
if (Object::cast_to<Resource>(p_object)) {
GDVIRTUAL_CALL(_edit, Ref<Resource>(Object::cast_to<Resource>(p_object)));
} else {
GDVIRTUAL_CALL(_edit, p_object);
}
GDVIRTUAL_CALL(_edit, p_object);
}
bool EditorPlugin::handles(Object *p_object) const {