summaryrefslogtreecommitdiffstats
path: root/scene/resources/visual_shader.cpp
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2024-02-09 15:02:58 +0100
committerHendrik Brucker <hendrik.brucker@mail.de>2024-02-22 20:40:09 +0100
commit02a33b67a8c9f8b94e027862c37d0151d7666470 (patch)
tree3b0102881a4b890d65310d6f249751ec895587e9 /scene/resources/visual_shader.cpp
parent16d61427cab3a8e43f0a9a8ee724fc176b6433c6 (diff)
downloadredot-engine-02a33b67a8c9f8b94e027862c37d0151d7666470.tar.gz
Redesign the graph editor for visual shaders
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r--scene/resources/visual_shader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index 218ca6322a..c7c2ddbb18 100644
--- a/scene/resources/visual_shader.cpp
+++ b/scene/resources/visual_shader.cpp
@@ -403,6 +403,11 @@ String VisualShaderNode::get_warning(Shader::Mode p_mode, VisualShader::Type p_t
return String();
}
+VisualShaderNode::Category VisualShaderNode::get_category() const {
+ WARN_PRINT(get_caption() + " is missing a category.");
+ return CATEGORY_NONE;
+}
+
bool VisualShaderNode::is_input_port_default(int p_port, Shader::Mode p_mode) const {
return false;
}