Fix T62865: Make Single User after Objects to Scene must be done twice.
Selected status was not properly moved from new object to new created base. This prevented next steps (making obdata, materials etc. local) to ever happen.
This commit is contained in:
parent
0195aad6da
commit
1638204ad4
Notes:
blender-bot
2023-09-13 08:48:34 +02:00
Referenced by issue #62927, Assert when opening default 2.79 startup file in 2.80 Referenced by issue #62865, Make Single User after Objects to Scene must be done twice
|
@ -35,6 +35,7 @@
|
|||
#include "BKE_main.h"
|
||||
#include "BKE_node.h"
|
||||
#include "BKE_object.h"
|
||||
#include "BKE_scene.h"
|
||||
|
||||
#include "DNA_ID.h"
|
||||
#include "DNA_space_types.h"
|
||||
|
@ -95,6 +96,7 @@ static Base *object_base_new(Object *ob)
|
|||
{
|
||||
Base *base = MEM_callocN(sizeof(Base), "Object Base");
|
||||
base->object = ob;
|
||||
BKE_scene_object_base_flag_sync_from_object(base);
|
||||
return base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue