Enforced a limit of 399 (UI_MAX_DRAW_STR) for pythons button object. using larger strings would segfailt blender.

This commit is contained in:
Campbell Barton
2006-06-20 18:31:05 +00:00
parent 76ffb08450
commit 447593d7b9
2 changed files with 22 additions and 8 deletions

View File

@@ -269,6 +269,7 @@ def Create(value):
@param value: The value to store in the button.
@rtype: Blender Button
@return: The Button created.
@note: String values must have less then 400 characters.
"""
def PushButton(name, event, x, y, width, height, tooltip = None):