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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-04-04 18:50:54 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-04-04 18:50:54 +0400
commitbff81e3394637638c8af89e91293add488e90168 (patch)
tree350619b82d671d3be8b65f358de568e96fff73ee /source/blender/freestyle/intern/python/StrokeShader
parentacfd7c82abdc26b7cd2859e762f12cc066a4ef68 (diff)
Relaxed type checking concerning boolean arguments so that not only
True and False but also various other boolean expressions (e.g., 0, 1, and None) are accepted.
Diffstat (limited to 'source/blender/freestyle/intern/python/StrokeShader')
-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;