** 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:
2004-08-17 04:26:00 +00:00
parent 5a39312392
commit 446e1fae7c
19 changed files with 874 additions and 161 deletions

View File

@@ -130,6 +130,8 @@ char * event_to_name(short event)
return "FrameChanged";
case SCRIPT_ONLOAD:
return "OnLoad";
case SCRIPT_ONSAVE:
return "OnSave";
case SCRIPT_REDRAW:
return "Redraw";
default:
@@ -272,9 +274,11 @@ PyObject *EXPP_getScriptLinks (ScriptLink *slink, PyObject *args, int is_scene)
event = SCRIPT_REDRAW;
else if (is_scene && !strcmp(eventname, "OnLoad"))
event = SCRIPT_ONLOAD;
else if (is_scene && !strcmp(eventname, "OnSave"))
event = SCRIPT_ONSAVE;
else
return EXPP_ReturnPyObjError (PyExc_AttributeError,
"invalid event name.");
"invalid event name");
for (i = 0; i < slink->totscript; i++) {
if ((slink->flag[i] == event) && slink->scripts[i])
@@ -335,6 +339,8 @@ int EXPP_addScriptLink (ScriptLink *slink, PyObject *args, int is_scene)
event = SCRIPT_REDRAW;
else if (is_scene && !strcmp(eventname, "OnLoad"))
event = SCRIPT_ONLOAD;
else if (is_scene && !strcmp(eventname, "OnSave"))
event = SCRIPT_ONSAVE;
else
return EXPP_ReturnIntError (PyExc_AttributeError,
"invalid event name.");