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-12-07 01:01:04 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-12-07 01:01:04 +0300
commit128f9730f2c63b85d397e9c09a612e806665c863 (patch)
treeb730a76c5eeb8c06ec12a08b87f3b9facd098312 /source/blender/freestyle/FRS_freestyle.h
parent092e708ee1ae5bf1dbf070144daf793540380d0e (diff)
Added Freestyle.getCurrentScene() to give access to the current scene
from within style modules. Calling this function is only valid within style modules. Calling it from the Python Interactive Console results in an error as follows: >>> import Freestyle >>> Freestyle.getCurrentScene() Traceback (most recent call last): File "<console>", line 1, in <module> TypeError: current scene not available >>>
Diffstat (limited to 'source/blender/freestyle/FRS_freestyle.h')
-rw-r--r--source/blender/freestyle/FRS_freestyle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/FRS_freestyle.h b/source/blender/freestyle/FRS_freestyle.h
index 1add5f97b38..3d8e785ce99 100644
--- a/source/blender/freestyle/FRS_freestyle.h
+++ b/source/blender/freestyle/FRS_freestyle.h
@@ -10,6 +10,7 @@ extern "C" {
#include "BKE_context.h"
+ extern Scene *freestyle_scene;
extern float freestyle_viewpoint[3];
extern float freestyle_mv[4][4];
extern float freestyle_proj[4][4];