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/system/BaseObject.h')
-rw-r--r--source/blender/freestyle/intern/system/BaseObject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/system/BaseObject.h b/source/blender/freestyle/intern/system/BaseObject.h
index d64c47b2445..335221223dc 100644
--- a/source/blender/freestyle/intern/system/BaseObject.h
+++ b/source/blender/freestyle/intern/system/BaseObject.h
@@ -57,8 +57,9 @@ class BaseObject {
/*! Decrements the reference counter */
inline int release()
{
- if (_ref_counter)
+ if (_ref_counter) {
_ref_counter--;
+ }
return _ref_counter;
}