diff options
author | kobewi <kobewi4e@gmail.com> | 2021-09-17 16:35:24 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-11-03 15:27:38 +0100 |
commit | 07065d67e12d2fb0923c3fc892234a9142f9c9e6 (patch) | |
tree | 13b3df30d0b47f9ea2fa9e0d0997eea03ef63bf4 /editor/editor_resource_picker.h | |
parent | 0bf3204d89dd57c2409446b91ecfd14f32a5f985 (diff) |
Infer shader type based on edited node
Diffstat (limited to 'editor/editor_resource_picker.h')
-rw-r--r-- | editor/editor_resource_picker.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_resource_picker.h b/editor/editor_resource_picker.h index d0dad0287b..f55c6f47f3 100644 --- a/editor/editor_resource_picker.h +++ b/editor/editor_resource_picker.h @@ -156,6 +156,7 @@ class EditorShaderPicker : public EditorResourcePicker { }; ShaderMaterial *edited_material = nullptr; + int preferred_mode = -1; public: virtual void set_create_options(Object *p_menu_node) override; @@ -163,6 +164,7 @@ public: void set_edited_material(ShaderMaterial *p_material); ShaderMaterial *get_edited_material() const; + void set_preferred_mode(int p_preferred_mode); EditorShaderPicker(); }; |