From b7b4f94e782f7e74c5acf0af19dfda07fdd92568 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 11 Apr 2014 16:35:46 +0900 Subject: Fix for Freestyle Python API modules not found in the Python Console. Addition of the path to the Freestyle Python API modules to 'sys.path' was delayed until the first Freestyle rendering, so that any import attempt of the modules in the Python Console always failed. Now the update of 'sys.path' is done at Blender start-up. This allows the Freestyle-specific modules to be imported without running Freestyle, facilitating quick interactive testing in the Console. --- source/blender/freestyle/intern/application/Controller.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/freestyle/intern/application') diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index 81034c1502c..81ce1622517 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -1024,7 +1024,6 @@ void Controller::init_options() // Directories ViewMapIO::Options::setModelsPath(cpath->getModelsPath()); - PythonInterpreter::Options::setPythonPath(cpath->getPythonPath()); TextureManager::Options::setPatternsPath(cpath->getPatternsPath()); TextureManager::Options::setBrushesPath(cpath->getModelsPath()); -- cgit v1.2.3