[Bf-blender-cvs] [26d28b7] asset-experiments: Reduce uuids size to 16 (as 'official' ones), more than enough!
Bastien Montagne
noreply at git.blender.org
Thu Mar 26 15:31:30 CET 2015
Commit: 26d28b755b77a66cec20ad5c5101e391e79e504e
Author: Bastien Montagne
Date: Mon Mar 23 15:55:52 2015 +0100
Branches: asset-experiments
https://developer.blender.org/rB26d28b755b77a66cec20ad5c5101e391e79e504e
Reduce uuids size to 16 (as 'official' ones), more than enough!
===================================================================
M source/blender/makesdna/DNA_space_types.h
===================================================================
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 3c85dad..3cccc23 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -749,9 +749,9 @@ typedef enum eDirEntry_SelectFlag {
/* For RNA only, used to communicate with asset engines outside of 'import' context. */
typedef struct AssetUUID {
- char uuid_asset[24]; /* ASSET_UUID_LENGTH */
- char uuid_variant[24]; /* ASSET_UUID_LENGTH */
- char uuid_revision[24]; /* ASSET_UUID_LENGTH */
+ char uuid_asset[16]; /* ASSET_UUID_LENGTH */
+ char uuid_variant[16]; /* ASSET_UUID_LENGTH */
+ char uuid_revision[16]; /* ASSET_UUID_LENGTH */
} AssetUUID;
typedef struct AssetUUIDList {
@@ -767,7 +767,7 @@ typedef struct FileDirEntryRevision {
* asset/variant/version (concatenating the three into a single 72 bytes one).
* Handled as bytes, **but** NULL-terminated (because of RNA).
*/
- char uuid[24]; /* ASSET_UUID_LENGTH */
+ char uuid[16]; /* ASSET_UUID_LENGTH */
char *comment;
@@ -794,7 +794,7 @@ typedef struct FileDirEntryVariant {
* asset/variant/version (concatenating the three into a single 72 bytes one).
* Handled as bytes, **but** NULL-terminated (because of RNA).
*/
- char uuid[24]; /* ASSET_UUID_LENGTH */
+ char uuid[16]; /* ASSET_UUID_LENGTH */
char *name;
char *description;
@@ -812,7 +812,7 @@ typedef struct FileDirEntry {
* asset/variant/version (concatenating the three into a single 72 bytes one).
* Handled as bytes, **but** NULL-terminated (because of RNA).
*/
- char uuid[24]; /* ASSET_UUID_LENGTH */
+ char uuid[16]; /* ASSET_UUID_LENGTH */
char *name;
char *description;
@@ -852,7 +852,7 @@ typedef struct FileDirEntryArr {
void *data;
} FileDirEntryArr;
-#define ASSET_UUID_LENGTH 24
+#define ASSET_UUID_LENGTH 16
enum {
ASSET_STATUS_LOCAL = 1 << 0, /* If active uuid is available localy/immediately. */
More information about the Bf-blender-cvs
mailing list