diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-22 14:43:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 14:43:25 +0200 |
commit | 6d298cf31180651b851bcb8c0eebf0de5d77acc9 (patch) | |
tree | 27aef01dd4c80aec539d112d0582f2fbce4f6de6 /scene | |
parent | abd13e4a53c02b6ee637a7566317782fc6fe16c2 (diff) | |
parent | 725e5d15ff1b168f8f5e9b18373058c0b9836939 (diff) |
Merge pull request #31561 from Chaosus/vs_group_editable
Added "editable" property to VisualShaderGroupNode
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/visual_shader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 08ce47692c..699410719c 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -2419,6 +2419,8 @@ void VisualShaderNodeGroupBase::_bind_methods() { ClassDB::bind_method(D_METHOD("set_editable", "enabled"), &VisualShaderNodeGroupBase::set_editable); ClassDB::bind_method(D_METHOD("is_editable"), &VisualShaderNodeGroupBase::is_editable); + + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "editable"), "set_editable", "is_editable"); } String VisualShaderNodeGroupBase::generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview) const { |