From dbf2d7b76cc8d0c2e7f8208665e117aa1c068aad Mon Sep 17 00:00:00 2001 From: Manuel Dun Date: Wed, 15 Sep 2021 19:45:07 -0400 Subject: [PATCH] Conversion now includes "Local to scene" flag and name (cherry picked from commit 3e8b54bfc365d167c2f397d29449ffdbc858bbc2) --- editor/plugins/material_editor_plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/plugins/material_editor_plugin.cpp b/editor/plugins/material_editor_plugin.cpp index 858388c71f0..920384b109e 100644 --- a/editor/plugins/material_editor_plugin.cpp +++ b/editor/plugins/material_editor_plugin.cpp @@ -274,6 +274,8 @@ Ref SpatialMaterialConversionPlugin::convert(const Ref &p_re } 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; } @@ -309,6 +311,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; } @@ -344,5 +348,7 @@ 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; }