Fix T65308: edit studio light state stays active after restarting Blender

This is only temporary for editing, should not be preserved.
This commit is contained in:
Brecht Van Lommel 2019-05-31 18:09:38 +02:00
parent acab6f7175
commit 3f23299403
Notes: blender-bot 2023-10-12 12:49:04 +02:00
Referenced by issue #65308, Studio light editor stays enabled on restart
1 changed files with 1 additions and 0 deletions

View File

@ -9593,6 +9593,7 @@ static BHead *read_userdef(BlendFileData *bfd, FileData *fd, BHead *bhead)
/* Clear runtime data. */
user->runtime.is_dirty = false;
user->edit_studio_light = 0;
/* free fd->datamap again */
oldnewmap_free_unused(fd->datamap);