@@ -168,10 +168,17 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
168168 }
169169 if (p_options.has (SNAME (" blender/materials/export_materials" ))) {
170170 int32_t exports = p_options[" blender/materials/export_materials" ];
171- if (exports == BLEND_MATERIAL_EXPORT_PLACEHOLDER) {
172- parameters_map[" export_materials" ] = " PLACEHOLDER" ;
173- } else if (exports == BLEND_MATERIAL_EXPORT_EXPORT) {
174- parameters_map[" export_materials" ] = " EXPORT" ;
171+ switch (exports) {
172+ case BLEND_MATERIAL_EXPORT_PLACEHOLDER: {
173+ parameters_map[" export_materials" ] = " PLACEHOLDER" ;
174+ } break ;
175+ case BLEND_MATERIAL_EXPORT_EXPORT: {
176+ parameters_map[" export_materials" ] = " EXPORT" ;
177+ } break ;
178+ case BLEND_MATERIAL_EXPORT_NAMED_PLACEHOLDER: {
179+ parameters_map[" export_materials" ] = " EXPORT" ;
180+ parameters_map[" export_image_format" ] = " NONE" ;
181+ } break ;
175182 }
176183 } else {
177184 parameters_map[" export_materials" ] = " PLACEHOLDER" ;
@@ -360,7 +367,7 @@ void EditorSceneFormatImporterBlend::get_import_options(const String &p_path, Li
360367 ADD_OPTION_ENUM (" blender/meshes/skins" , " None,4 Influences (Compatible),All Influences" , BLEND_BONE_INFLUENCES_ALL);
361368 ADD_OPTION_BOOL (" blender/meshes/export_bones_deforming_mesh_only" , false );
362369 ADD_OPTION_BOOL (" blender/materials/unpack_enabled" , true );
363- ADD_OPTION_ENUM (" blender/materials/export_materials" , " Placeholder,Export" , BLEND_MATERIAL_EXPORT_EXPORT);
370+ ADD_OPTION_ENUM (" blender/materials/export_materials" , " Placeholder,Export,Named Placeholder " , BLEND_MATERIAL_EXPORT_EXPORT);
364371 ADD_OPTION_BOOL (" blender/animation/limit_playback" , true );
365372 ADD_OPTION_BOOL (" blender/animation/always_sample" , true );
366373 ADD_OPTION_BOOL (" blender/animation/group_tracks" , true );
0 commit comments