Fix Crash: Reading canvas tool settings.

Blender would crash when a file was saved where the tool settings is
set to paint on a single image (3d texture painting).

Reason is that the selected image memory address wasn't updated
when the new address.
This commit is contained in:
Jeroen Bakker 2022-07-08 14:05:11 +02:00
parent a8f7d41d38
commit 155bb95353
1 changed files with 1 additions and 0 deletions

View File

@ -1173,6 +1173,7 @@ static void scene_blend_read_data(BlendDataReader *reader, ID *id)
BKE_curveprofile_blend_read(reader, sce->toolsettings->custom_bevel_profile_preset);
}
BLO_read_data_address(reader, &sce->toolsettings->paint_mode.canvas_image);
BLO_read_data_address(reader, &sce->toolsettings->sequencer_tool_settings);
}