From e118426e4695a97d67e65d69677f3c4e2db50a56 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 9 Nov 2020 16:05:03 +1100 Subject: Fix T82520: error building freestyle with Python3.8 Caused by 16732def37c5a66f3ea28dbe247b09cc6bca6677, This is a 'Py_ssize_t' in Python 3.8, replace with zero as this works in both 3.7 and 3.8. --- .../freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp') diff --git a/source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp b/source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp index dfc3a81bc01..7c6c4da80ec 100644 --- a/source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp +++ b/source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp @@ -76,7 +76,7 @@ PyTypeObject ConstantColorShader_Type = { sizeof(BPy_ConstantColorShader), /* tp_basicsize */ 0, /* tp_itemsize */ nullptr, /* tp_dealloc */ - nullptr, /* tp_print */ + 0, /* tp_print */ nullptr, /* tp_getattr */ nullptr, /* tp_setattr */ nullptr, /* tp_reserved */ -- cgit v1.2.3