Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2017-04-10 14:06:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-04-10 14:12:02 +0300
commit73a9ff0d2d4f3cabcaa64f8e47586a793daa77f0 (patch)
tree812057932f5d7a1c39f26056b18a893bfdd3edb7 /source/blender/blenkernel/intern/idprop.c
parent5b873c8c24bf90cb53da5760fe5435e16e1c8665 (diff)
PyAPI: Fast buffer access to id property arrays
Support Python's buffer protocol for ID-properties.
Diffstat (limited to 'source/blender/blenkernel/intern/idprop.c')
-rw-r--r--source/blender/blenkernel/intern/idprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c
index 0f1716dcaf7..5e4e8eb34ad 100644
--- a/source/blender/blenkernel/intern/idprop.c
+++ b/source/blender/blenkernel/intern/idprop.c
@@ -890,7 +890,7 @@ IDProperty *IDP_New(const char type, const IDPropertyTemplate *val, const char *
*(float *)&prop->data.val = val->f;
break;
case IDP_DOUBLE:
- prop = MEM_callocN(sizeof(IDProperty), "IDProperty float");
+ prop = MEM_callocN(sizeof(IDProperty), "IDProperty double");
*(double *)&prop->data.val = val->d;
break;
case IDP_ARRAY: