From 128f9730f2c63b85d397e9c09a612e806665c863 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sun, 6 Dec 2009 22:01:04 +0000 Subject: 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 "", line 1, in TypeError: current scene not available >>> --- source/blender/freestyle/FRS_freestyle.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/freestyle/FRS_freestyle.h') 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]; -- cgit v1.2.3