Fix reference counting error for world drag & drop

Error in 986d60490c
This commit is contained in:
Campbell Barton 2021-10-14 08:57:14 +11:00
parent 8434aa1b78
commit 685ceaa2f7
1 changed files with 1 additions and 0 deletions

View File

@ -4891,6 +4891,7 @@ static int drop_world_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
id_us_min((ID *)scene->world);
id_us_plus(&world->id);
scene->world = world;