[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11388] trunk/blender/source/blender/ python/api2_2x: missing include and added a warning to UIBlock

Campbell Barton cbarton at metavr.com
Fri Jul 27 11:30:54 CEST 2007


Revision: 11388
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11388
Author:   campbellbarton
Date:     2007-07-27 11:30:54 +0200 (Fri, 27 Jul 2007)

Log Message:
-----------
missing include and added a warning to UIBlock

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Curve.c
    trunk/blender/source/blender/python/api2_2x/doc/Draw.py

Modified: trunk/blender/source/blender/python/api2_2x/Curve.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Curve.c	2007-07-27 06:14:25 UTC (rev 11387)
+++ trunk/blender/source/blender/python/api2_2x/Curve.c	2007-07-27 09:30:54 UTC (rev 11388)
@@ -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"

Modified: trunk/blender/source/blender/python/api2_2x/doc/Draw.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Draw.py	2007-07-27 06:14:25 UTC (rev 11387)
+++ trunk/blender/source/blender/python/api2_2x/doc/Draw.py	2007-07-27 09:30:54 UTC (rev 11388)
@@ -249,8 +249,9 @@
 	@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.





More information about the Bf-blender-cvs mailing list