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/Operators.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/Operators.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/freestyle/intern/stroke/Operators.cpp b/source/blender/freestyle/intern/stroke/Operators.cpp
index 39914cbef1a..6221f6c16f1 100755
--- a/source/blender/freestyle/intern/stroke/Operators.cpp
+++ b/source/blender/freestyle/intern/stroke/Operators.cpp
@@ -814,10 +814,14 @@ Stroke* createStroke(Interface1D& inter) {
inline void applyShading(Stroke& stroke, vector<StrokeShader*>& shaders) {
- for (vector<StrokeShader*>::iterator it = shaders.begin();
- it != shaders.end();
- ++it)
- (*it)->shade(stroke);
+ for (vector<StrokeShader*>::iterator it = shaders.begin(); it != shaders.end(); ++it) {
+ StrokeShader *ss = *it;
+ string name( ss->py_ss ? PyString_AsString(PyObject_CallMethod(ss->py_ss, "getName", "")) : ss->getName() );
+
+ cout << "Shading: " << name << endl;
+ (*it)->shade(stroke);
+
+ }
}
@@ -832,7 +836,8 @@ void Operators::create(UnaryPredicate1D& pred, vector<StrokeShader*> shaders) {
++it) {
if (!pred(**it))
continue;
- Stroke* stroke = createStroke(**it);
+
+ Stroke* stroke = createStroke(**it);
if (stroke) {
applyShading(*stroke, shaders);
canvas->RenderStroke(stroke);