diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2008-08-01 06:25:21 +0400 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2008-08-01 06:25:21 +0400 |
commit | c324f0cbc72b47182ba3d7fd1bbd280fcebe3283 (patch) | |
tree | 27b53c8ed01e51f078724ac8f7783d05bfb9dd24 /source/blender/freestyle/intern/stroke | |
parent | 4580fd1415d92ed882744e2617f5ac05e895452f (diff) |
soc-2008-mxcurioni: clean-up #2
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Stroke.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index c6b52358264..b1d6e466215 100755 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -404,7 +404,9 @@ Stroke::Stroke(const Stroke& iBrother) _mediumType = iBrother._mediumType; _textureId = iBrother._textureId; _tips = iBrother._tips; - _rep = new StrokeRep(*(iBrother._rep)); + + if(iBrother._rep) + _rep = new StrokeRep(*(iBrother._rep)); } Stroke::~Stroke() |