[Bf-blender-cvs] [31cb4133b9c] blender-v2.83-release: Fix T77009: texture baking crash on Windows

Brecht Van Lommel noreply at git.blender.org
Mon May 25 18:17:50 CEST 2020


Commit: 31cb4133b9ca82f73b6fb52674c030ca56776d1f
Author: Brecht Van Lommel
Date:   Mon May 25 17:21:18 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB31cb4133b9ca82f73b6fb52674c030ca56776d1f

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.

===================================================================

M	source/blender/makesrna/intern/makesrna.c

===================================================================

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<T>& other) { copy_from(other); }\n"
+    "    DynamicArray(const DynamicArray<T>& other) : data(NULL), length(0) { copy_from(other); "
+    "}\n"
     "    const DynamicArray<T>& operator = (const DynamicArray<T>& other) { copy_from(other); "
     "return *this; }\n"
     "\n"



More information about the Bf-blender-cvs mailing list