Change _can_handle and _edit virtual methods to take Object*
This commit is contained in:
committed by
Rémi Verschelde
parent
f0c9ed4b55
commit
d2b4e30058
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user