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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user