From eb53c0fb3297d012d56acdb9b9dbf24c1b63ce5b Mon Sep 17 00:00:00 2001 From: Chaosus Date: Tue, 23 Apr 2019 21:21:17 +0300 Subject: [PATCH] Enlarge Vector3 constant node in visual shaders --- editor/plugins/visual_shader_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index e3fab34768e..1248c0c19b9 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1852,9 +1852,9 @@ Control *VisualShaderNodePluginDefault::create_editor(const Ref(prop)) { Object::cast_to(prop)->set_use_sub_inspector(false); prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); - } else if (Object::cast_to(prop)) { + } else if (Object::cast_to(prop) || Object::cast_to(prop)) { prop->set_custom_minimum_size(Size2(250 * EDSCALE, 0)); - } else if (Object::cast_to(prop) || Object::cast_to(prop)) { + } else if (Object::cast_to(prop)) { prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); } else if (Object::cast_to(prop)) { prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0));