Fix T76646: Crash when changing Size in Add Cube pop-up in some cases.

Remove resetting of ID uuid session counter, it is not really needed
anymore, and not trivial to do this properly everytime.

Thanks @brecht for investigating this.
This commit is contained in:
Bastien Montagne 2020-05-13 10:37:02 +02:00
parent 79511fca20
commit cda25f8f38
Notes: blender-bot 2023-02-14 09:48:25 +01:00
Referenced by issue #76646, Crash when changing Size in Add Cube pop-up
3 changed files with 0 additions and 13 deletions

View File

@ -72,7 +72,6 @@ void BKE_libblock_init_empty(struct ID *id) ATTR_NONNULL(1);
/* When an ID's uuid is of that value, it is unset/invalid (e.g. for runtime IDs, etc.). */
#define MAIN_ID_SESSION_UUID_UNSET 0
void BKE_lib_libblock_session_uuid_reset(void);
void BKE_lib_libblock_session_uuid_ensure(struct ID *id);
void BKE_lib_libblock_session_uuid_renew(struct ID *id);

View File

@ -1063,12 +1063,6 @@ void BKE_libblock_init_empty(ID *id)
/* ********** ID session-wise UUID management. ********** */
static uint global_session_uuid = 0;
/** Reset the session-wise uuid counter (used when reading a new file e.g.). */
void BKE_lib_libblock_session_uuid_reset()
{
global_session_uuid = 0;
}
/**
* Generate a session-wise uuid for the given \a id.
*

View File

@ -617,9 +617,6 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports)
UI_view2d_zoom_cache_reset();
/* Reset session-wise ID UUID counter. */
BKE_lib_libblock_session_uuid_reset();
/* first try to append data from exotic file formats... */
/* it throws error box when file doesn't exist and returns -1 */
/* note; it should set some error message somewhere... (ton) */
@ -926,9 +923,6 @@ void wm_homefile_read(bContext *C,
}
}
/* Reset session-wise ID UUID counter. */
BKE_lib_libblock_session_uuid_reset();
if (!use_factory_settings || (filepath_startup[0] != '\0')) {
if (BLI_access(filepath_startup, R_OK) == 0) {
success = BKE_blendfile_read(C,