summaryrefslogtreecommitdiffstats
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-05-21 19:26:14 +0300
committerGitHub <noreply@github.com>2019-05-21 19:26:14 +0300
commitebb6eb8be8f25defd9b65ce667425cdbef13bdcd (patch)
treeb71dbec32084cf6af0243577f8935bb58c906d9b /editor/plugins/visual_shader_editor_plugin.cpp
parentb6bd19dfc50b2e9884dd34aafbfe76764f8fc8e5 (diff)
parent6f2abd68f27b966ba4b45ae8e90192b7a0ea1382 (diff)
downloadredot-engine-ebb6eb8be8f25defd9b65ce667425cdbef13bdcd.tar.gz
Merge pull request #29073 from Chaosus/express_fixes
Fix few bugs in expression node
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index cdb1dbfdc4..31f5d337a7 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -984,9 +984,9 @@ void VisualShaderEditor::_set_node_size(int p_type, int p_node, const Vector2 &p
box_size.x = gn->get_size().x;
}
}
- box_size.x -= text_box->get_margin(Margin::MARGIN_LEFT);
+ box_size.x -= text_box->get_margin(MARGIN_LEFT);
box_size.x -= 28 * EDSCALE;
- box_size.y -= text_box->get_margin(Margin::MARGIN_TOP);
+ box_size.y -= text_box->get_margin(MARGIN_TOP);
box_size.y -= 28 * EDSCALE;
text_box->set_custom_minimum_size(Size2(box_size.x, box_size.y));
text_box->set_size(Size2(1, 1));