Merge pull request #52732 from manueldun/materialConversionM
Materials Conversion now includes "Local to scene" flag and name
This commit is contained in:
commit
9e0f8110ad
@ -278,6 +278,8 @@ Ref<Resource> StandardMaterial3DConversionPlugin::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;
|
||||
}
|
||||
|
||||
@ -315,6 +317,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;
|
||||
}
|
||||
|
||||
@ -352,6 +356,8 @@ 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;
|
||||
}
|
||||
|
||||
@ -389,6 +395,8 @@ Ref<Resource> ProceduralSkyMaterialConversionPlugin::convert(const Ref<Resource>
|
||||
}
|
||||
|
||||
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<Resource> PanoramaSkyMaterialConversionPlugin::convert(const Ref<Resource> &
|
||||
}
|
||||
|
||||
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<Resource> PhysicalSkyMaterialConversionPlugin::convert(const Ref<Resource> &
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user