diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-10-29 17:49:12 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-10-29 17:49:24 +0300 |
commit | 7528c204d33327a69cdb39a5d7cb87512f1f8272 (patch) | |
tree | 839574d141010641a3819a8cf0aa74312a2a3f6b /editor/plugins/material_editor_plugin.h | |
parent | dae626ad64b83bd05ccf7bc18306bc91585997e2 (diff) |
Added convertor from `ORMMaterial3D` to `ShaderMaterial`
Diffstat (limited to 'editor/plugins/material_editor_plugin.h')
-rw-r--r-- | editor/plugins/material_editor_plugin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/plugins/material_editor_plugin.h b/editor/plugins/material_editor_plugin.h index c8bd60eb26..62549843f7 100644 --- a/editor/plugins/material_editor_plugin.h +++ b/editor/plugins/material_editor_plugin.h @@ -107,6 +107,15 @@ public: virtual Ref<Resource> convert(const Ref<Resource> &p_resource) const override; }; +class ORMMaterial3DConversionPlugin : public EditorResourceConversionPlugin { + GDCLASS(ORMMaterial3DConversionPlugin, EditorResourceConversionPlugin); + +public: + virtual String converts_to() const override; + virtual bool handles(const Ref<Resource> &p_resource) const override; + virtual Ref<Resource> convert(const Ref<Resource> &p_resource) const override; +}; + class ParticlesMaterialConversionPlugin : public EditorResourceConversionPlugin { GDCLASS(ParticlesMaterialConversionPlugin, EditorResourceConversionPlugin); |