From bd5394f6c0bec4eb969aa8bd24b072d7dd9ab04d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 4 Jan 2019 17:35:07 +0100 Subject: Fix T57890: freestyle rendering crash. Depsgraph objects are deleted after conversion to Freestyle data structures, so don't keep a pointer to their name strings. --- source/blender/freestyle/intern/python/BPy_SShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/python/BPy_SShape.cpp') diff --git a/source/blender/freestyle/intern/python/BPy_SShape.cpp b/source/blender/freestyle/intern/python/BPy_SShape.cpp index 28c9e815196..00a1f5ce34d 100644 --- a/source/blender/freestyle/intern/python/BPy_SShape.cpp +++ b/source/blender/freestyle/intern/python/BPy_SShape.cpp @@ -185,7 +185,7 @@ PyDoc_STRVAR(SShape_name_doc, static PyObject *SShape_name_get(BPy_SShape *self, void *UNUSED(closure)) { - return PyUnicode_FromString(self->ss->getName()); + return PyUnicode_FromString(self->ss->getName().c_str()); } static int SShape_name_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure)) -- cgit v1.2.3