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/python')
-rw-r--r--source/blender/freestyle/intern/python/StrokeShader/BPy_ColorVariationPatternShader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/StrokeShader/BPy_ColorVariationPatternShader.cpp b/source/blender/freestyle/intern/python/StrokeShader/BPy_ColorVariationPatternShader.cpp
index 380c760d0c0..2a4bd1f29ed 100644
--- a/source/blender/freestyle/intern/python/StrokeShader/BPy_ColorVariationPatternShader.cpp
+++ b/source/blender/freestyle/intern/python/StrokeShader/BPy_ColorVariationPatternShader.cpp
@@ -110,7 +110,7 @@ int ColorVariationPatternShader___init__( BPy_ColorVariationPatternShader* self,
return -1;
}
- bool b = (obj && PyBool_Check(obj)) ? bool_from_PyBool(obj) : true;
+ bool b = (obj) ? bool_from_PyBool(obj) : true;
self->py_ss.ss = new StrokeShaders::ColorVariationPatternShader(s,b);
return 0;