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:
Diffstat (limited to 'source/blender/freestyle/intern/stroke/StrokeRenderer.cpp')
-rw-r--r--source/blender/freestyle/intern/stroke/StrokeRenderer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp b/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp
index 530a7644bfa..a76579c7c96 100644
--- a/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp
+++ b/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp
@@ -74,15 +74,17 @@ TextureManager::TextureManager()
TextureManager::~TextureManager()
{
- if (!_brushesMap.empty())
+ if (!_brushesMap.empty()) {
_brushesMap.clear();
+ }
_pInstance = 0;
}
void TextureManager::load()
{
- if (_hasLoadedTextures)
+ if (_hasLoadedTextures) {
return;
+ }
loadStandardBrushes();
_hasLoadedTextures = true;
}