mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Simplify GDVIRTUAL_CALL calls
This commit is contained in:
parent
4a96fce801
commit
d06a8320e5
28 changed files with 507 additions and 983 deletions
|
@ -87,10 +87,8 @@ void VisualShaderNodePlugin::set_editor(VisualShaderEditor *p_editor) {
|
|||
|
||||
Control *VisualShaderNodePlugin::create_editor(const Ref<Resource> &p_parent_resource, const Ref<VisualShaderNode> &p_node) {
|
||||
Object *ret = nullptr;
|
||||
if (GDVIRTUAL_CALL(_create_editor, p_parent_resource, p_node, ret)) {
|
||||
return Object::cast_to<Control>(ret);
|
||||
}
|
||||
return nullptr;
|
||||
GDVIRTUAL_CALL(_create_editor, p_parent_resource, p_node, ret);
|
||||
return Object::cast_to<Control>(ret);
|
||||
}
|
||||
|
||||
void VisualShaderNodePlugin::_bind_methods() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue