Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-08-01 06:25:21 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-08-01 06:25:21 +0400
commitc324f0cbc72b47182ba3d7fd1bbd280fcebe3283 (patch)
tree27b53c8ed01e51f078724ac8f7783d05bfb9dd24 /source/blender/freestyle/intern/stroke/Stroke.cpp
parent4580fd1415d92ed882744e2617f5ac05e895452f (diff)
soc-2008-mxcurioni: clean-up #2
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Stroke.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/Stroke.cpp4
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()