Explorar o código

Conversion now includes "Local to scene" flag and name

(cherry picked from commit 3e8b54bfc365d167c2f397d29449ffdbc858bbc2)
Manuel Dun %!s(int64=4) %!d(string=hai) anos
pai
achega
dbf2d7b76c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      editor/plugins/material_editor_plugin.cpp

+ 6 - 0
editor/plugins/material_editor_plugin.cpp

@@ -274,6 +274,8 @@ Ref<Resource> SpatialMaterialConversionPlugin::convert(const Ref<Resource> &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<Resource> ParticlesMaterialConversionPlugin::convert(const Ref<Resource> &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<Resource> CanvasItemMaterialConversionPlugin::convert(const Ref<Resource> &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;
 }