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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-07-27 13:30:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-07-27 13:30:54 +0400
commita164d91d42eff658524c16aa9ad5772b606d0848 (patch)
treef225a10af2e9e5c75b9d3bec761779968f9a7fc6 /source
parent3031f1f2bd13d0265e3214bf9f17a8bdd1b1dc2f (diff)
missing include and added a warning to UIBlock
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Curve.c1
-rw-r--r--source/blender/python/api2_2x/doc/Draw.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c
index 75838f442c0..b620593d6b8 100644
--- a/source/blender/python/api2_2x/Curve.c
+++ b/source/blender/python/api2_2x/Curve.c
@@ -32,6 +32,7 @@
#include "Curve.h" /*This must come first*/
+#include "BLI_blenlib.h"
#include "BKE_main.h"
#include "BKE_displist.h"
#include "BKE_global.h"
diff --git a/source/blender/python/api2_2x/doc/Draw.py b/source/blender/python/api2_2x/doc/Draw.py
index 70006048a61..d82c64e031b 100644
--- a/source/blender/python/api2_2x/doc/Draw.py
+++ b/source/blender/python/api2_2x/doc/Draw.py
@@ -249,8 +249,9 @@ def UIBlock(draw):
@note: Within this popup, Redraw events and the registered button callback will not work.
For buttons to run events, use per button callbacks.
@note: OpenGL drawing functions wont work within this popup, for text use L{Label} rather then L{Text}
+ @warning: L{Menu} will not work properly within a UIBlock, this is a limitation with blenders user user interface internals.
"""
-
+
def Register(draw = None, event = None, button = None):
"""
Register callbacks for windowing.