diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-07 12:31:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 12:31:38 +0200 |
commit | 365dbde25d00520ff3aeb37a37daba2cc3b161e2 (patch) | |
tree | f2c9dcb0f666e413b95cba0a79eb269ca7129254 /scene/resources/visual_shader.h | |
parent | 753b2bd01082ea6de89c58e73518326383441201 (diff) | |
parent | e2aca7e04734da91f511a61250f09ae967f20503 (diff) |
Merge pull request #41843 from Chaosus/vs_fix_some_nodes
Fix some broken visual shader nodes
Diffstat (limited to 'scene/resources/visual_shader.h')
-rw-r--r-- | scene/resources/visual_shader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/visual_shader.h b/scene/resources/visual_shader.h index c51f09ba36..8f22cb0a84 100644 --- a/scene/resources/visual_shader.h +++ b/scene/resources/visual_shader.h @@ -180,7 +180,7 @@ VARIANT_ENUM_CAST(VisualShader::Type) class VisualShaderNode : public Resource { GDCLASS(VisualShaderNode, Resource); - int port_preview; + int port_preview = -1; Map<int, Variant> default_input_values; Map<int, bool> connected_input_ports; @@ -188,7 +188,7 @@ class VisualShaderNode : public Resource { int connected_output_count = 0; protected: - bool simple_decl = false; + bool simple_decl = true; static void _bind_methods(); public: |