|
@@ -6928,8 +6928,7 @@ EditorNode::EditorNode() {
|
|
|
|
|
|
{
|
|
{
|
|
// Register importers at the beginning, so dialogs are created with the right extensions.
|
|
// Register importers at the beginning, so dialogs are created with the right extensions.
|
|
- Ref<ResourceImporterTexture> import_texture;
|
|
|
|
- import_texture.instantiate();
|
|
|
|
|
|
+ Ref<ResourceImporterTexture> import_texture = memnew(ResourceImporterTexture(true));
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_texture);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_texture);
|
|
|
|
|
|
Ref<ResourceImporterLayeredTexture> import_cubemap;
|
|
Ref<ResourceImporterLayeredTexture> import_cubemap;
|
|
@@ -6947,8 +6946,7 @@ EditorNode::EditorNode() {
|
|
import_cubemap_array->set_mode(ResourceImporterLayeredTexture::MODE_CUBEMAP_ARRAY);
|
|
import_cubemap_array->set_mode(ResourceImporterLayeredTexture::MODE_CUBEMAP_ARRAY);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_cubemap_array);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_cubemap_array);
|
|
|
|
|
|
- Ref<ResourceImporterLayeredTexture> import_3d;
|
|
|
|
- import_3d.instantiate();
|
|
|
|
|
|
+ Ref<ResourceImporterLayeredTexture> import_3d = memnew(ResourceImporterLayeredTexture(true));
|
|
import_3d->set_mode(ResourceImporterLayeredTexture::MODE_3D);
|
|
import_3d->set_mode(ResourceImporterLayeredTexture::MODE_3D);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_3d);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_3d);
|
|
|
|
|
|
@@ -6988,12 +6986,10 @@ EditorNode::EditorNode() {
|
|
import_shader_file.instantiate();
|
|
import_shader_file.instantiate();
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_shader_file);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_shader_file);
|
|
|
|
|
|
- Ref<ResourceImporterScene> import_scene;
|
|
|
|
- import_scene.instantiate();
|
|
|
|
|
|
+ Ref<ResourceImporterScene> import_scene = memnew(ResourceImporterScene(false, true));
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_scene);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_scene);
|
|
|
|
|
|
- Ref<ResourceImporterScene> import_animation;
|
|
|
|
- import_animation = Ref<ResourceImporterScene>(memnew(ResourceImporterScene(true)));
|
|
|
|
|
|
+ Ref<ResourceImporterScene> import_animation = memnew(ResourceImporterScene(true, true));
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_animation);
|
|
ResourceFormatImporter::get_singleton()->add_importer(import_animation);
|
|
|
|
|
|
{
|
|
{
|