Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/blendfile.c
| Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | #endif | ||||
| if (mode == LOAD_UNDO) { | if (mode == LOAD_UNDO) { | ||||
| /* In undo/redo case, we do a whole lot of magic tricks to avoid having to re-read linked | /* In undo/redo case, we do a whole lot of magic tricks to avoid having to re-read linked | ||||
| * data-blocks from libraries (since those are not supposed to change). Unfortunately, that | * data-blocks from libraries (since those are not supposed to change). Unfortunately, that | ||||
| * means that we do not reset their user count, however we do increase that one when doing | * means that we do not reset their user count, however we do increase that one when doing | ||||
| * lib_link on local IDs using linked ones. | * lib_link on local IDs using linked ones. | ||||
| * There is no real way to predict amount of changes here, so we have to fully redo | * There is no real way to predict amount of changes here, so we have to fully redo | ||||
| * refcounting . */ | * refcounting . */ | ||||
| BKE_main_id_refcount_recompute(bmain, true); | BKE_main_id_refcount_recompute(bmain, false); | ||||
| } | } | ||||
| } | } | ||||
| static void setup_app_blend_file_data(bContext *C, | static void setup_app_blend_file_data(bContext *C, | ||||
| BlendFileData *bfd, | BlendFileData *bfd, | ||||
| const char *filepath, | const char *filepath, | ||||
| const struct BlendFileReadParams *params, | const struct BlendFileReadParams *params, | ||||
| ReportList *reports) | ReportList *reports) | ||||
| ▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines | |||||