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/StyleModule.h')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/StyleModule.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/stroke/StyleModule.h b/source/blender/freestyle/intern/stroke/StyleModule.h
index c023ad7517b..5bdb54cf16c 100755
--- a/source/blender/freestyle/intern/stroke/StyleModule.h
+++ b/source/blender/freestyle/intern/stroke/StyleModule.h
@@ -54,7 +54,7 @@ public:
_inter = inter;
}
- ~StyleModule() {}
+ virtual ~StyleModule() {}
StrokeLayer* execute() {
if (!_inter) {
@@ -69,7 +69,7 @@ public:
Operators::reset();
- if( _inter->interpretFile(_file_name) ) {
+ if( interpret() ) {
cerr << "Error: interpretation failed" << endl;
return NULL;
}
@@ -89,6 +89,14 @@ public:
return sl;
}
+protected:
+
+ virtual int interpret() {
+ return _inter->interpretFile(_file_name);
+ }
+
+public:
+
// accessors
const string getFileName() const {
@@ -151,6 +159,9 @@ private:
bool _drawable;
bool _modified;
bool _displayed;
+
+protected:
+
Interpreter* _inter;
};