missing include and added a warning to UIBlock

This commit is contained in:
2007-07-27 09:30:54 +00:00
parent 3031f1f2bd
commit a164d91d42
2 changed files with 3 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
#include "Curve.h" /*This must come first*/ #include "Curve.h" /*This must come first*/
#include "BLI_blenlib.h"
#include "BKE_main.h" #include "BKE_main.h"
#include "BKE_displist.h" #include "BKE_displist.h"
#include "BKE_global.h" #include "BKE_global.h"

View File

@@ -249,6 +249,7 @@ def UIBlock(draw):
@note: Within this popup, Redraw events and the registered button callback will not work. @note: Within this popup, Redraw events and the registered button callback will not work.
For buttons to run events, use per button callbacks. 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} @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): def Register(draw = None, event = None, button = None):