diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-04 19:35:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-04 19:58:55 +0300 |
commit | bd5394f6c0bec4eb969aa8bd24b072d7dd9ab04d (patch) | |
tree | de12a648b59fa06625a8206d1471c7f765aa2949 /source/blender/freestyle/intern/view_map/ViewMap.h | |
parent | 0d736d689671c4c28a8bda6ca1f8ab61726142b5 (diff) |
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.
Diffstat (limited to 'source/blender/freestyle/intern/view_map/ViewMap.h')
-rw-r--r-- | source/blender/freestyle/intern/view_map/ViewMap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/ViewMap.h b/source/blender/freestyle/intern/view_map/ViewMap.h index 0acc6ca39d8..87b59dc1b54 100644 --- a/source/blender/freestyle/intern/view_map/ViewMap.h +++ b/source/blender/freestyle/intern/view_map/ViewMap.h @@ -1566,13 +1566,13 @@ public: } /*! Returns the ViewShape name. */ - inline const char *getName() const + inline const string& getName() const { return _SShape->getName(); } /*! Returns the ViewShape library path. */ - inline const char *getLibraryPath() const + inline const string& getLibraryPath() const { return _SShape->getLibraryPath(); } |