Fix crash making objects single user

Add BKE_view_layer_synced_ensure to the FOREACH_OBJECT_FLAG_BEGIN
macro. This macro was only used by the single-user operator.
This commit is contained in:
Campbell Barton
2024-09-19 17:22:07 +10:00
parent 9e68066a4d
commit 3a555b60f7
+1
View File
@@ -464,6 +464,7 @@ void BKE_view_layer_visible_bases_iterator_end(BLI_Iterator *iter);
func_end = BKE_scene_objects_iterator_end; \
data_in = (scene); \
} \
BKE_view_layer_synced_ensure(scene, _view_layer); \
ITER_BEGIN (func_begin, func_next, func_end, data_in, Object *, _instance)
#define FOREACH_OBJECT_FLAG_END \