diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-05 16:39:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 16:39:57 +0200 |
commit | 5aea7bc10811a81991535c5cd22e185b74b51f35 (patch) | |
tree | e7f94fc18d4b4a2fe1890f2cd5f2f88be3637665 /editor/plugins/visual_shader_editor_plugin.h | |
parent | 834d07cfc1d61710f73a13fb72d83c48f3b4390c (diff) | |
parent | 43ee35431eb2074fc81f11bd8394a0dbe43985ff (diff) |
Merge pull request #31108 from Chaosus/vs_fix_texture
Fix opening of sub-resource properties in visual shaders
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.h')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.h b/editor/plugins/visual_shader_editor_plugin.h index d396243bf3..315ef1788e 100644 --- a/editor/plugins/visual_shader_editor_plugin.h +++ b/editor/plugins/visual_shader_editor_plugin.h @@ -48,7 +48,7 @@ protected: static void _bind_methods(); public: - virtual Control *create_editor(const Ref<VisualShaderNode> &p_node); + virtual Control *create_editor(const Ref<Resource> &p_parent_resource, const Ref<VisualShaderNode> &p_node); }; class VisualShaderEditor : public VBoxContainer { @@ -272,7 +272,7 @@ class VisualShaderNodePluginDefault : public VisualShaderNodePlugin { GDCLASS(VisualShaderNodePluginDefault, VisualShaderNodePlugin); public: - virtual Control *create_editor(const Ref<VisualShaderNode> &p_node); + virtual Control *create_editor(const Ref<Resource> &p_parent_resource, const Ref<VisualShaderNode> &p_node); }; class EditorPropertyShaderMode : public EditorProperty { |