Fix #29640: make duplicates release keep hierarchy and parent properties not

working for multiple objects.

ID.newid only worked for one object, now it uses a hash instead.
This commit is contained in:
2011-12-16 23:56:18 +00:00
parent 6f24642a2d
commit 4d6c34462c
3 changed files with 67 additions and 8 deletions

View File

@@ -142,6 +142,16 @@ int BLI_ghashutil_strcmp (const void *a, const void *b);
unsigned int BLI_ghashutil_inthash (const void *ptr);
int BLI_ghashutil_intcmp (const void *a, const void *b);
typedef struct GHashPair {
const void *first;
int second;
} GHashPair;
GHashPair* BLI_ghashutil_pairalloc (const void *first, int second);
unsigned int BLI_ghashutil_pairhash (const void *ptr);
int BLI_ghashutil_paircmp (const void *a, const void *b);
void BLI_ghashutil_pairfree (const void *ptr);
#ifdef __cplusplus
}
#endif