From 31cb4133b9ca82f73b6fb52674c030ca56776d1f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 25 May 2020 17:21:18 +0200 Subject: Fix T77009: texture baking crash on Windows Only happens in master, but DynamicArray implementation is wrong also in 2.83. Thanks to Jesse Y and Ray Molenkamp for investigating. --- source/blender/makesrna/intern/makesrna.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 46854bc6307..10a53e5707e 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -4702,7 +4702,8 @@ static const char *cpp_classes = " DynamicArray() : data(NULL), length(0) {}\n" " DynamicArray(int new_length) : data(NULL), length(new_length) { data = (T " "*)malloc(sizeof(T) * new_length); }\n" - " DynamicArray(const DynamicArray& other) { copy_from(other); }\n" + " DynamicArray(const DynamicArray& other) : data(NULL), length(0) { copy_from(other); " + "}\n" " const DynamicArray& operator = (const DynamicArray& other) { copy_from(other); " "return *this; }\n" "\n" -- cgit v1.2.3