From 3e8b54bfc365d167c2f397d29449ffdbc858bbc2 Mon Sep 17 00:00:00 2001 From: Manuel Dun Date: Wed, 15 Sep 2021 19:45:07 -0400 Subject: Conversion now includes "Local to scene" flag and name --- editor/plugins/material_editor_plugin.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'editor') diff --git a/editor/plugins/material_editor_plugin.cpp b/editor/plugins/material_editor_plugin.cpp index 94966d4fe6..30945826bb 100644 --- a/editor/plugins/material_editor_plugin.cpp +++ b/editor/plugins/material_editor_plugin.cpp @@ -278,6 +278,8 @@ Ref StandardMaterial3DConversionPlugin::convert(const Ref &p } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } @@ -315,6 +317,8 @@ Ref ParticlesMaterialConversionPlugin::convert(const Ref &p_ } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } @@ -352,6 +356,8 @@ Ref CanvasItemMaterialConversionPlugin::convert(const Ref &p } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } @@ -389,6 +395,8 @@ Ref ProceduralSkyMaterialConversionPlugin::convert(const Ref } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } @@ -426,6 +434,8 @@ Ref PanoramaSkyMaterialConversionPlugin::convert(const Ref & } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } @@ -463,5 +473,7 @@ Ref PhysicalSkyMaterialConversionPlugin::convert(const Ref & } smat->set_render_priority(mat->get_render_priority()); + smat->set_local_to_scene(mat->is_local_to_scene()); + smat->set_name(mat->get_name()); return smat; } -- cgit v1.2.3