summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader.h
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-08-02 21:55:50 +0300
committerGitHub <noreply@github.com>2021-08-02 21:55:50 +0300
commitbd6b7c4b0ffef9176e89d5654f1d52aeab085602 (patch)
tree681dced2d6221a48ac09f3d933e01998ee50e51a /scene/resources/visual_shader.h
parent610fbc556a9968f6ccb5f5e6b3a858b39f0b9aa0 (diff)
parent94c6817b51fa175a337420cd18cb9313fbc5889b (diff)
Merge pull request #51144 from Chaosus/vs_version
Makes dictionary instead of string for visual shader version
Diffstat (limited to 'scene/resources/visual_shader.h')
-rw-r--r--scene/resources/visual_shader.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/scene/resources/visual_shader.h b/scene/resources/visual_shader.h
index 880c401b29..abf55185ab 100644
--- a/scene/resources/visual_shader.h
+++ b/scene/resources/visual_shader.h
@@ -44,7 +44,7 @@ class VisualShader : public Shader {
friend class VisualShaderNodeVersionChecker;
- String version = "";
+ Dictionary engine_version;
public:
enum Type {
@@ -137,10 +137,12 @@ public: // internal methods
Type get_shader_type() const;
public:
- void set_version(const String &p_version);
- String get_version() const;
+ void set_engine_version(const Dictionary &p_version);
+ Dictionary get_engine_version() const;
- void update_version(const String &p_new_version);
+#ifndef DISABLE_DEPRECATED
+ void update_engine_version(const Dictionary &p_new_version);
+#endif /* DISABLE_DEPRECATED */
enum {
NODE_ID_INVALID = -1,