** Note: two new files added, projectfiles will need an update.
Scripts: Campbell Barton (Ideasman, thanks) updated his Wavefront OBJ importer. BPython: - Finally committed pending contributions: Chris Keith wrote the Blender.Sound module -- still some testing to do this week; Joseph (joeedh) added the OnLoad scene script event; Satish Goda added 6 GLU functions to Blender.BGL. Great additions, thanks all! - Small changes to Blender.Load (leave editmode as Blender wants) and Window.EditMode (allow definition of "undo string"); - Fixed bug #1539: Window.RedrawAll() crashed Blender if an empty spacescript was available while using it in a gui-less script. - doc updates.
This commit is contained in:
@@ -201,7 +201,7 @@ def GetViewMatrix ():
|
||||
@return: the current matrix.
|
||||
"""
|
||||
|
||||
def EditMode(enable = -1):
|
||||
def EditMode(enable = -1, undo_msg = 'From script'):
|
||||
"""
|
||||
Get and optionally set the current edit mode status: in or out.
|
||||
|
||||
@@ -221,7 +221,12 @@ def EditMode(enable = -1):
|
||||
- 1: enter edit mode.
|
||||
|
||||
It's not an error to try to change to a state that is already the
|
||||
current one, the function simply ignores the request.
|
||||
current one, the function simply ignores the request.
|
||||
@type undo_msg: string
|
||||
@param undo_msg: only needed when exiting edit mode (EditMode(0)). This
|
||||
string is used as the undo message in the Mesh->Undo History submenu in
|
||||
the 3d view header. Max length is 63, strings longer than that get
|
||||
clamped.
|
||||
@rtype: int (bool)
|
||||
@return: 0 if Blender is not in edit mode right now, 1 otherwise.
|
||||
@warn: this is an important function. NMesh operates on normal Blender
|
||||
|
Reference in New Issue
Block a user