diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2009-03-21 07:51:51 +0300 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2009-03-21 07:51:51 +0300 |
commit | f520fb2426f515b815d0c3de2dbe4de247475574 (patch) | |
tree | 61b6d83e913a26e366a263c79da1966d54e9e21a /source/blender/freestyle/intern | |
parent | c1611c346ff4d8f88f1dcba8e5fada71930551bb (diff) |
Corrected stroke/Operators.cpp to compile without warnings
Cleaned up comments
Diffstat (limited to 'source/blender/freestyle/intern')
-rwxr-xr-x | source/blender/freestyle/intern/app_blender/Controller.cpp | 8 | ||||
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Operators.cpp | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/source/blender/freestyle/intern/app_blender/Controller.cpp b/source/blender/freestyle/intern/app_blender/Controller.cpp index 8cdb13d131d..8c00dd9b3f3 100755 --- a/source/blender/freestyle/intern/app_blender/Controller.cpp +++ b/source/blender/freestyle/intern/app_blender/Controller.cpp @@ -649,14 +649,6 @@ void Controller::RenderBlender(Render *re) { void Controller::InsertStyleModule(unsigned index, const char *iFileName) { - // QFileInfo fi(iFileName); - // string ext = fi.suffix(); - // if (ext != "py") { - // cerr << "Error: Cannot load \"" << fi.fileName().toAscii().data() - // << "\", unknown extension" << endl; - // return; - // } - if( !BLI_testextensie(iFileName, ".py") ) { cerr << "Error: Cannot load \"" << StringUtils::toAscii( string(iFileName) ) << "\", unknown extension" << endl; diff --git a/source/blender/freestyle/intern/stroke/Operators.cpp b/source/blender/freestyle/intern/stroke/Operators.cpp index ab940d9a24d..950c9570f0e 100755 --- a/source/blender/freestyle/intern/stroke/Operators.cpp +++ b/source/blender/freestyle/intern/stroke/Operators.cpp @@ -20,6 +20,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <algorithm> +#include <stdexcept> #include "Operators.h" #include "Canvas.h" #include "Stroke.h" @@ -978,7 +979,7 @@ inline int applyShading(Stroke& stroke, vector<StrokeShader*>& shaders) { int Operators::create(UnaryPredicate1D& pred, vector<StrokeShader*> shaders) { - Canvas* canvas = Canvas::getInstance(); + //Canvas* canvas = Canvas::getInstance(); if (!_current_set) { cerr << "Warning: current set empty" << endl; return 0; |