godotengine / godotengine/godot

Can not set back '_subresources' param in import setting to default.

Open
#92,142 2 comments 0 reactions 0 assignees View on GitHub
bug confirmed topic:import
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.2.2-stable (https://github.com/godotengine/godot/commit/15073afe3856abd2aa1622492fe50026c7d63dc1)

### System information

Windows10 x64

### Issue description

In 'Advanced Import Settings' modal,
When any property changes of children nodes is same as default values,
Changes are not applies to .import file (_subresources property).

![movie](https://github.com/godotengine/godot/assets/98034800/d54b77b7-812f-4301-a5a9-7d136ebce4c7)

### Steps to reproduce

1. Open attatched project.
2. Right click on 'test_ball.blend' in 'FileSystem' tree and choose 'Open Scene'.
3. Select 'ball1' scene tree.
4. Change 'Cast Shadow' property to 'Off' and press Reimport button.
5. Right click on 'test_ball.blend' in 'FileSystem' tree and choose 'Open Scene'.
6. Select 'ball1' scene tree.
7. Change 'Cast Shadow' property to 'On'(default value) and press Reimport button.
8. Right click on 'test_ball.blend' in 'FileSystem' tree and choose 'Open Scene'.
9. Select 'ball1' scene tree.
10. 'Cast Shadow' property has been still set 'Off'. (operation no.7 was not applied)

### Minimal reproduction project (MRP)

[subresource_bug.zip](https://github.com/godotengine/godot/files/15372090/subresource_bug.zip)

Contributor guide

Open the contributing guide

Research direction

Start by opening the attached minimal reproduction project and following the Advanced Import Settings steps for test_ball.blend. Trace how the _subresources property is written when Cast Shadow is changed back to its default, then verify that reimporting and reopening the scene preserves the default value.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.