Blender V5.3
BKE_main.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
22
23#include <array>
24#include <atomic>
25
26#include "DNA_listBase.h"
27
28#include "BLI_compiler_attrs.hh"
29#include "BLI_map.hh"
31#include "BLI_set.hh"
32#include "BLI_sys_types.hh"
33#include "BLI_utility_mixins.hh"
34#include "BLI_vector_set.hh"
35
37#include "BKE_lib_query.hh" /* For LibraryForeachIDCallbackFlag. */
38
39struct MainLock;
40namespace blender {
41
42struct BLI_mempool;
43struct BlendThumbnail;
44struct ID;
45struct IDNameLib_Map;
46struct ImBuf;
47struct Library;
48struct ReportList;
49struct UniqueName_Map;
50struct Scene;
51struct Object;
52struct Mesh;
53struct Curve;
54struct MetaBall;
55struct Material;
56struct Tex;
57struct Image;
58struct Lattice;
59struct Light;
60struct Camera;
61struct Key;
62struct World;
63struct bScreen;
64struct VFont;
65struct Text;
66struct Speaker;
67struct LightProbe;
68struct bSound;
69struct Collection;
70struct bArmature;
71struct bAction;
72struct bNodeTree;
73struct Brush;
74struct ParticleSettings;
75struct Palette;
76struct PaintCurve;
77struct wmWindowManager;
78struct bGPdata;
79struct GreasePencil;
80struct MovieClip;
81struct Mask;
83struct CacheFile;
84struct WorkSpace;
85struct Curves;
86struct PointCloud;
87struct Volume;
88
89struct Brush;
90struct CacheFile;
91struct Camera;
92struct Collection;
93struct Curve;
94struct Curves;
96struct GreasePencil;
97struct Image;
98struct Key;
99struct Lattice;
100struct Light;
101struct LightProbe;
102struct Mask;
103struct Material;
104struct Mesh;
105struct MetaBall;
106struct MovieClip;
107struct Object;
108struct PaintCurve;
109struct Palette;
110struct ParticleSettings;
111struct PointCloud;
112struct Scene;
113struct Speaker;
114struct Tex;
115struct Text;
116struct VFont;
117struct Volume;
118struct WorkSpace;
119struct World;
120struct bAction;
121struct bArmature;
122struct bGPdata;
123struct bNodeTree;
124struct bScreen;
125struct bSound;
126struct wmWindowManager;
127
134 char rect[0];
135};
136
153
166
205
212 /* NOTE: we could add more mappings when needed (e.g. from session uid?). */
213
214 short flag;
215
216 /* Private... */
218};
219
220enum {
223};
224
242
254 std::shared_ptr<VectorSet<Main *>> split_mains = {};
267 char filepath[/*FILE_MAX*/ 1024] = "";
268 /* See BLENDER_FILE_VERSION, BLENDER_FILE_SUBVERSION. */
269 short versionfile = 0;
270 short subversionfile = 0;
271 /* See BLENDER_FILE_MIN_VERSION, BLENDER_FILE_MIN_SUBVERSION. */
272 short minversionfile = 0;
282
288 bool is_asset_edit_file = false;
289
293 char build_hash[16] = {};
295 bool recovered = false;
308
314
320 bool is_read_invalid = false;
321
328 bool is_global_main = false;
329
343
348
351
357
366 Library *curlib = nullptr;
367
372
383
384 /* List bases for all ID types, containing all IDs for the current #Main. */
385
386 ListBaseT<Scene> scenes = {};
387 ListBaseT<Library> libraries = {};
388 ListBaseT<Object> objects = {};
389 ListBaseT<Mesh> meshes = {};
390 ListBaseT<Curve> curves = {};
391 ListBaseT<MetaBall> metaballs = {};
392 ListBaseT<Material> materials = {};
393 ListBaseT<Tex> textures = {};
394 ListBaseT<Image> images = {};
395 ListBaseT<Lattice> lattices = {};
396 ListBaseT<Light> lights = {};
397 ListBaseT<Camera> cameras = {};
398 ListBaseT<Key> shapekeys = {};
399 ListBaseT<World> worlds = {};
400 ListBaseT<bScreen> screens = {};
401 ListBaseT<VFont> fonts = {};
402 ListBaseT<Text> texts = {};
403 ListBaseT<Speaker> speakers = {};
404 ListBaseT<LightProbe> lightprobes = {};
405 ListBaseT<bSound> sounds = {};
406 ListBaseT<Collection> collections = {};
407 ListBaseT<bArmature> armatures = {};
408 ListBaseT<bAction> actions = {};
409 ListBaseT<bNodeTree> nodetrees = {};
410 ListBaseT<Brush> brushes = {};
411 ListBaseT<ParticleSettings> particles = {};
412 ListBaseT<Palette> palettes = {};
413 ListBaseT<PaintCurve> paintcurves = {};
415 ListBaseT<wmWindowManager> wm = {};
417 ListBaseT<bGPdata> gpencils = {};
418 ListBaseT<GreasePencil> grease_pencils = {};
419 ListBaseT<MovieClip> movieclips = {};
420 ListBaseT<Mask> masks = {};
421 ListBaseT<FreestyleLineStyle> linestyles = {};
422 ListBaseT<CacheFile> cachefiles = {};
423 ListBaseT<WorkSpace> workspaces = {};
428 ListBaseT<Curves> hair_curves = {};
429 ListBaseT<PointCloud> pointclouds = {};
430 ListBaseT<Volume> volumes = {};
431
438
441
444
450
451 MainLock *lock = nullptr;
452
464 std::atomic<int32_t> no_resync = 0;
465
466 /* Constructors and destructors. */
467 Main();
468 ~Main();
469};
470
482void BKE_main_init_from_reference(Main &bmain, const Main &reference);
492void BKE_main_clear(Main &bmain);
497void BKE_main_free(Main *bmain);
498
522
545void BKE_main_merge(Main *bmain_dst,
546 Set<ID *> *force_merge_src_ids,
547 Main **r_bmain_src,
548 MainMergeReport &reports);
550void BKE_main_merge(Main *bmain_dst, Main **r_bmain_src, MainMergeReport &reports);
551
563 Main *&r_bmain_src,
564 Library &dst_external_library,
565 MainMergeReport &reports);
566
570bool BKE_main_is_empty(Main *bmain);
571
575bool BKE_main_has_issues(const Main *bmain);
576
581bool BKE_main_needs_overwrite_confirm(const Main *bmain);
582
583void BKE_main_lock(Main *bmain);
584void BKE_main_unlock(Main *bmain);
585
587void BKE_main_relations_create(Main *bmain, short flag);
588void BKE_main_relations_free(Main *bmain);
590void BKE_main_relations_tag_set(Main *bmain, eMainIDRelationsEntryTags tag, bool value);
591
599
600/* Temporary runtime API to allow re-using local (already appended)
601 * IDs instead of appending a new copy again. */
602
604
616 MainLibraryWeakReferenceMap *library_weak_reference_mapping) ATTR_NONNULL();
627 MainLibraryWeakReferenceMap *library_weak_reference_mapping,
628 const char *library_filepath,
629 const char *library_id_name) ATTR_NONNULL();
640 MainLibraryWeakReferenceMap *library_weak_reference_mapping,
641 const char *library_filepath,
642 const char *library_id_name,
643 ID *new_id) ATTR_NONNULL();
659 MainLibraryWeakReferenceMap *library_weak_reference_mapping,
660 const char *library_filepath,
661 const char *library_id_name,
662 ID *old_id,
663 ID *new_id) ATTR_NONNULL();
674 MainLibraryWeakReferenceMap *library_weak_reference_mapping,
675 const char *library_filepath,
676 const char *library_id_name,
677 ID *old_id) ATTR_NONNULL();
678
684 const char *library_filepath,
685 const char *library_id_name);
686
692 const char *library_filepath,
693 const char *library_id_name);
694
695/* *** Generic utils to loop over whole Main database. *** */
696
697#define FOREACH_MAIN_LISTBASE_ID_BEGIN(_lb, _id) \
698 { \
699 ID *_id_next = static_cast<ID *>((_lb)->first_); \
700 for ((_id) = _id_next; (_id) != nullptr; (_id) = _id_next) { \
701 _id_next = static_cast<ID *>((_id)->next);
702
703#define FOREACH_MAIN_LISTBASE_ID_END \
704 } \
705 } \
706 ((void)0)
707
708#define FOREACH_MAIN_LISTBASE_BEGIN(_bmain, _lb) \
709 { \
710 MainListsArray _lbarray = BKE_main_lists_get(*(_bmain)); \
711 size_t _i = _lbarray.size(); \
712 while (_i--) { \
713 (_lb) = _lbarray[_i];
714
715#define FOREACH_MAIN_LISTBASE_END \
716 } \
717 } \
718 ((void)0)
719
729#define FOREACH_MAIN_ID_BEGIN(_bmain, _id) \
730 { \
731 ListBaseT<ID> *_lb; \
732 FOREACH_MAIN_LISTBASE_BEGIN ((_bmain), _lb) { \
733 FOREACH_MAIN_LISTBASE_ID_BEGIN (_lb, (_id))
734
735#define FOREACH_MAIN_ID_END \
736 FOREACH_MAIN_LISTBASE_ID_END; \
737 } \
738 FOREACH_MAIN_LISTBASE_END; \
739 } \
740 ((void)0)
741
750BlendThumbnail *BKE_main_thumbnail_from_buffer(Main *bmain,
751 const uint8_t *rect,
752 const int size[2]);
753
761BlendThumbnail *BKE_main_thumbnail_from_imbuf(Main *bmain, ImBuf *img);
769ImBuf *BKE_main_thumbnail_to_imbuf(Main *bmain, BlendThumbnail *data);
773void BKE_main_thumbnail_create(Main *bmain);
774
778const char *BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL();
789const char *BKE_main_blendfile_path_from_library(const Library &library);
790
794ListBaseT<ID> *which_libbase(Main *bmain, short type);
795
797using MainListsArray = std::array<ListBaseT<ID> *, INDEX_ID_MAX - 1>;
798
809
827 public:
828 using iterator_category = std::bidirectional_iterator_tag;
829 using value_type = ID;
830 using difference_type = std::ptrdiff_t;
831 using pointer = ID *;
832 using reference = ID &;
833
834 private:
835 MainListsArray lbarray_;
836 bool reverse_id_type_order_ = false;
837 int64_t curr_lbarray_index_;
838 ID *curr_id_ = nullptr;
839
840 public:
841 /* Note: default constructor is a requirement to make the iterator usable with std::ranges. */
842 MainAllIDsIterator() : lbarray_{}
843 {
844 curr_lbarray_index_ = lbarray_index_lower_bound();
845 ++(*this);
846 }
847
848 explicit MainAllIDsIterator(MainListsArray &lbarray, const bool reverse_id_type_order = false)
849 : lbarray_(lbarray), reverse_id_type_order_(reverse_id_type_order)
850 {
851 curr_lbarray_index_ = lbarray_index_lower_bound();
852 ++(*this);
853 }
854
855 explicit MainAllIDsIterator(Main &bmain, const bool reverse_id_type_order = false)
856 : lbarray_(BKE_main_lists_get(bmain)), reverse_id_type_order_(reverse_id_type_order)
857 {
858 curr_lbarray_index_ = lbarray_index_lower_bound();
859 ++(*this);
860 }
861
862 private:
864 int64_t lbarray_index_lower_bound() const
865 {
866 return reverse_id_type_order_ ? -1 : int64_t(lbarray_.size());
867 }
868
870 int64_t lbarray_index_upper_bound() const
871 {
872 return reverse_id_type_order_ ? int64_t(lbarray_.size()) : -1;
873 }
874
875 bool lbarray_index_is_valid() const
876 {
877 return (curr_lbarray_index_ >= -1 && curr_lbarray_index_ <= int64_t(lbarray_.size()));
878 }
879
880 void lbarray_index_step_next()
881 {
882 if (reverse_id_type_order_) {
883 curr_lbarray_index_++;
884 }
885 else {
886 curr_lbarray_index_--;
887 }
888 }
889
890 void lbarray_index_step_prev()
891 {
892 if (reverse_id_type_order_) {
893 curr_lbarray_index_--;
894 }
895 else {
896 curr_lbarray_index_++;
897 }
898 }
899
900 public:
902 {
903 MainAllIDsIterator tmp = *this;
904 tmp.curr_lbarray_index_ = tmp.lbarray_index_lower_bound();
905 tmp.curr_id_ = nullptr;
906 return ++tmp;
907 }
908
910 {
911 MainAllIDsIterator tmp = *this;
912 tmp.curr_lbarray_index_ = tmp.lbarray_index_upper_bound();
913 tmp.curr_id_ = nullptr;
914 return tmp;
915 }
916
918
920 {
921 MainAllIDsIterator tmp = *this;
922 ++(*this);
923 return tmp;
924 }
925
927
929 {
930 MainAllIDsIterator tmp = *this;
931 --(*this);
932 return tmp;
933 }
934
935 friend bool operator==(const MainAllIDsIterator &a, const MainAllIDsIterator &b)
936 {
937 return a.curr_id_ == b.curr_id_ && a.curr_lbarray_index_ == b.curr_lbarray_index_;
938 }
939
940 ID &operator*() const
941 {
942 return *curr_id_;
943 }
944
946 int64_t size() const;
947};
948
949#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver) \
950 ((main)->versionfile > (ver) || \
951 ((main)->versionfile == (ver) && (main)->subversionfile >= (subver)))
952
953#define MAIN_VERSION_FILE_OLDER(main, ver, subver) \
954 ((main)->versionfile < (ver) || \
955 ((main)->versionfile == (ver) && (main)->subversionfile < (subver)))
956
957#define MAIN_VERSION_FILE_OLDER_OR_EQUAL(main, ver, subver) \
958 ((main)->versionfile < (ver) || \
959 ((main)->versionfile == (ver) && (main)->subversionfile <= (subver)))
960
966#define LIBRARY_VERSION_FILE_ATLEAST(lib, ver, subver) \
967 ((lib)->runtime->versionfile == 0 || (lib)->runtime->versionfile > (ver) || \
968 ((lib)->runtime->versionfile == (ver) && (lib)->runtime->subversionfile >= (subver)))
969
977#define BLEN_THUMB_SIZE 128
978
979#define BLEN_THUMB_MEMSIZE(_x, _y) \
980 (sizeof(BlendThumbnail) + (size_t(_x) * size_t(_y)) * sizeof(int))
981
982#define BLEN_THUMB_MEMSIZE_IS_VALID(_x, _y) \
983 (((_x) > 0 && (_y) > 0) && ((uint64_t)(_x) * (uint64_t)(_y) < (SIZE_MAX / (sizeof(int) * 4))))
984
985} // namespace blender
#define ATTR_NONNULL(...)
#define INDEX_ID_MAX
Definition DNA_ID.h:1362
These structs are the foundation for all linked lists in the library system.
long long int int64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
std::bidirectional_iterator_tag iterator_category
Definition BKE_main.hh:828
MainAllIDsIterator begin() const
Definition BKE_main.hh:901
friend bool operator==(const MainAllIDsIterator &a, const MainAllIDsIterator &b)
Definition BKE_main.hh:935
MainAllIDsIterator end() const
Definition BKE_main.hh:909
MainAllIDsIterator(MainListsArray &lbarray, const bool reverse_id_type_order=false)
Definition BKE_main.hh:848
MainAllIDsIterator(Main &bmain, const bool reverse_id_type_order=false)
Definition BKE_main.hh:855
MainAllIDsIterator operator++(int)
Definition BKE_main.hh:919
std::ptrdiff_t difference_type
Definition BKE_main.hh:830
int64_t size() const
Definition main.cc:1291
MainAllIDsIterator operator--(int)
Definition BKE_main.hh:928
NonCopyable(const NonCopyable &other)=delete
NonMovable(NonMovable &&other)=delete
BMesh Iterators.
void BKE_main_relations_free(Main *bmain)
Definition main.cc:760
GPUAttachmentType & operator++(GPUAttachmentType &a)
std::array< ListBaseT< ID > *, INDEX_ID_MAX - 1 > MainListsArray
Definition BKE_main.hh:797
unsigned __int64 uint64_t
Definition BKE_text.h:91
__int64 int64_t
Definition BKE_text.h:90
void BKE_main_library_weak_reference_add_item(MainLibraryWeakReferenceMap *library_weak_reference_mapping, const char *library_filepath, const char *library_id_name, ID *new_id) ATTR_NONNULL()
Definition main.cc:874
GPUAttachmentType & operator--(GPUAttachmentType &a)
ID * BKE_main_library_weak_reference_search_item(MainLibraryWeakReferenceMap *library_weak_reference_mapping, const char *library_filepath, const char *library_id_name) ATTR_NONNULL()
Definition main.cc:865
unsigned int uint
Definition BKE_text.h:55
ImBuf * BKE_main_thumbnail_to_imbuf(Main *bmain, BlendThumbnail *data)
Definition main.cc:1029
void BKE_main_library_weak_reference_add(ID *local_id, const char *library_filepath, const char *library_id_name)
Definition main.cc:971
Main * BKE_main_new()
Definition main.cc:93
void BKE_main_init_from_reference(Main &bmain, const Main &reference)
Definition main.cc:100
void BKE_main_thumbnail_create(Main *bmain)
Definition main.cc:1048
const char * BKE_main_blendfile_path_from_global()
Definition main.cc:1063
MainListsArray BKE_main_lists_get(Main &bmain)
Definition main.cc:1158
void BKE_main_library_weak_reference_remove_item(MainLibraryWeakReferenceMap *library_weak_reference_mapping, const char *library_filepath, const char *library_id_name, ID *old_id) ATTR_NONNULL()
Definition main.cc:920
BlendThumbnail * BKE_main_thumbnail_from_imbuf(Main *bmain, ImBuf *img)
Definition main.cc:1005
@ MAINIDRELATIONS_INCLUDE_UI
Definition BKE_main.hh:222
eMainIDRelationsEntryTags
Definition BKE_main.hh:168
@ MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_TO
Definition BKE_main.hh:176
@ MAINIDRELATIONS_ENTRY_TAGS_DOIT
Definition BKE_main.hh:170
@ MAINIDRELATIONS_ENTRY_TAGS_INPROGRESS
Definition BKE_main.hh:202
@ MAINIDRELATIONS_ENTRY_TAGS_INPROGRESS_FROM
Definition BKE_main.hh:197
@ MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_FROM
Definition BKE_main.hh:181
@ MAINIDRELATIONS_ENTRY_TAGS_INPROGRESS_TO
Definition BKE_main.hh:191
@ MAINIDRELATIONS_ENTRY_TAGS_PROCESSED
Definition BKE_main.hh:183
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
Definition main.cc:1058
void BKE_main_library_weak_reference_destroy(MainLibraryWeakReferenceMap *library_weak_reference_mapping) ATTR_NONNULL()
Definition main.cc:859
bool BKE_main_needs_overwrite_confirm(const Main *bmain)
Definition main.cc:655
BlendThumbnail * BKE_main_thumbnail_from_buffer(Main *bmain, const uint8_t *rect, const int size[2])
Definition main.cc:983
BMesh const char void * data
void BKE_main_library_weak_reference_update_item(MainLibraryWeakReferenceMap *library_weak_reference_mapping, const char *library_filepath, const char *library_id_name, ID *old_id, ID *new_id) ATTR_NONNULL()
Definition main.cc:898
unsigned char uint8_t
Definition BKE_text.h:79
bool BKE_main_has_issues(const Main *bmain)
Definition main.cc:649
void BKE_main_merge_as_archive_library(Main &bmain_dst, Main *&r_bmain_src, Library &dst_external_library, MainMergeReport &reports)
Definition main.cc:575
void BKE_main_merge(Main *bmain_dst, Set< ID * > *force_merge_src_ids, Main **r_bmain_src, MainMergeReport &reports)
Definition main.cc:362
void BKE_main_relations_create(Main *bmain, short flag)
Definition main.cc:723
MatBase< float, 3, 3 > float3x3
void BKE_main_relations_tag_set(Main *bmain, eMainIDRelationsEntryTags tag, bool value)
Definition main.cc:773
void BKE_main_free(Main *bmain)
Definition main.cc:202
Set< const ID * > * BKE_main_set_create(Main *bmain, Set< const ID * > *set)
Definition main.cc:788
void BKE_main_unlock(Main *bmain)
Definition main.cc:666
ID * BKE_main_library_weak_reference_find(Main *bmain, const char *library_filepath, const char *library_id_name)
Definition main.cc:937
void BKE_main_lock(Main *bmain)
Definition main.cc:661
void BKE_main_clear(Main &bmain)
Definition main.cc:106
LibraryForeachIDCallbackFlag
void ATTR_NONNULL(1, 2)
bool BKE_main_is_empty(Main *bmain)
Definition main.cc:637
const char * BKE_main_blendfile_path_from_library(const Library &library)
Definition main.cc:1068
ListBaseT< ID > * which_libbase(Main *bmain, short type)
Definition main.cc:1073
MainLibraryWeakReferenceMap * BKE_main_library_weak_reference_create(Main *bmain) ATTR_NONNULL()
Definition main.cc:828
LibraryForeachIDCallbackFlag usage_flag
Definition BKE_main.hh:151
MainIDRelationsEntryItem * next
Definition BKE_main.hh:139
union blender::MainIDRelationsEntryItem::@147225153336151171020043026201123101032025326304 id_pointer
MainIDRelationsEntryItem * from_ids
Definition BKE_main.hh:156
MainIDRelationsEntryItem * to_ids
Definition BKE_main.hh:158
Map< const ID *, MainIDRelationsEntry * > * relations_from_pointers
Definition BKE_main.hh:211
BLI_mempool * entry_items_pool
Definition BKE_main.hh:217
Library * curlib
Definition BKE_main.hh:366
ListBaseT< Key > shapekeys
Definition BKE_main.hh:398
ListBaseT< wmWindowManager > wm
Definition BKE_main.hh:415
ListBaseT< Collection > collections
Definition BKE_main.hh:406
ListBaseT< bArmature > armatures
Definition BKE_main.hh:407
char filepath[1024]
Definition BKE_main.hh:267
bool is_action_slot_to_id_map_dirty
Definition BKE_main.hh:342
bool is_part_of_project
Definition BKE_main.hh:382
ListBaseT< bGPdata > gpencils
Definition BKE_main.hh:417
bool is_memfile_undo_flush_needed
Definition BKE_main.hh:302
MainIDRelations * relations
Definition BKE_main.hh:437
IDNameLib_Map * id_map
Definition BKE_main.hh:440
MainLock * lock
Definition BKE_main.hh:451
bool is_global_main
Definition BKE_main.hh:328
ListBaseT< Lattice > lattices
Definition BKE_main.hh:395
std::shared_ptr< VectorSet< Main * > > split_mains
Definition BKE_main.hh:254
ListBaseT< Palette > palettes
Definition BKE_main.hh:412
ListBaseT< bNodeTree > nodetrees
Definition BKE_main.hh:409
ListBaseT< VFont > fonts
Definition BKE_main.hh:401
ListBaseT< Curves > hair_curves
Definition BKE_main.hh:428
ListBaseT< Camera > cameras
Definition BKE_main.hh:397
UniqueName_Map * name_map_global
Definition BKE_main.hh:449
ListBaseT< MetaBall > metaballs
Definition BKE_main.hh:391
short minsubversionfile
Definition BKE_main.hh:273
ListBaseT< FreestyleLineStyle > linestyles
Definition BKE_main.hh:421
ListBaseT< Text > texts
Definition BKE_main.hh:402
bool need_preview_render_restart
Definition BKE_main.hh:347
bool is_locked_for_linking
Definition BKE_main.hh:313
ListBaseT< Library > libraries
Definition BKE_main.hh:387
ListBaseT< Light > lights
Definition BKE_main.hh:396
ListBaseT< World > worlds
Definition BKE_main.hh:399
ListBaseT< PointCloud > pointclouds
Definition BKE_main.hh:429
short versionfile
Definition BKE_main.hh:269
ListBaseT< MovieClip > movieclips
Definition BKE_main.hh:419
ListBaseT< Brush > brushes
Definition BKE_main.hh:410
char build_hash[16]
Definition BKE_main.hh:293
ListBaseT< Material > materials
Definition BKE_main.hh:392
bool is_read_invalid
Definition BKE_main.hh:320
ListBaseT< Object > objects
Definition BKE_main.hh:388
short subversionfile
Definition BKE_main.hh:270
bool is_asset_edit_file
Definition BKE_main.hh:288
ListBaseT< CacheFile > cachefiles
Definition BKE_main.hh:422
ListBaseT< PaintCurve > paintcurves
Definition BKE_main.hh:413
ListBaseT< Mesh > meshes
Definition BKE_main.hh:389
ListBaseT< WorkSpace > workspaces
Definition BKE_main.hh:423
UniqueName_Map * name_map
Definition BKE_main.hh:443
ListBaseT< Mask > masks
Definition BKE_main.hh:420
ListBaseT< Speaker > speakers
Definition BKE_main.hh:403
bool is_updating_node_trees
Definition BKE_main.hh:350
bool is_memfile_undo_written
Definition BKE_main.hh:297
ListBaseT< bSound > sounds
Definition BKE_main.hh:405
std::atomic< int32_t > no_resync
Definition BKE_main.hh:464
ListBaseT< ParticleSettings > particles
Definition BKE_main.hh:411
bool has_forward_compatibility_issues
Definition BKE_main.hh:281
uint64_t build_commit_timestamp
Definition BKE_main.hh:291
ListBaseT< Image > images
Definition BKE_main.hh:394
ListBaseT< bAction > actions
Definition BKE_main.hh:408
ListBaseT< Scene > scenes
Definition BKE_main.hh:386
ListBaseT< GreasePencil > grease_pencils
Definition BKE_main.hh:418
ListBaseT< LightProbe > lightprobes
Definition BKE_main.hh:404
ListBaseT< Tex > textures
Definition BKE_main.hh:393
bool use_memfile_full_barrier
Definition BKE_main.hh:307
BlendThumbnail * blen_thumb
Definition BKE_main.hh:356
ListBaseT< Volume > volumes
Definition BKE_main.hh:430
ListBaseT< bScreen > screens
Definition BKE_main.hh:400
short minversionfile
Definition BKE_main.hh:272