fix for uninitialized variables in uv stretch drawing,

[#8428] 'Editmesh_active' theme colour not accessible via Python
bugfix problem where saving a theme would raise and error when ~/.blender didnt exist.
bugfix for file selector staying open (introduced with own undo resistant scripts)
This commit is contained in:
2008-03-09 07:35:12 +00:00
parent a339bca9a1
commit d9da14d8a7
4 changed files with 26 additions and 15 deletions

View File

@@ -527,8 +527,9 @@ static void getSelectedFile( char *name )
}
else Py_DECREF(result);
if (script->py_browsercallback == pycallback)
script->py_browsercallback = NULL;
if (script->py_browsercallback == pycallback) {
SCRIPT_SET_NULL(script);
}
/* else another call to selector was made inside pycallback */
Py_DECREF(pycallback);
@@ -599,8 +600,12 @@ static PyObject *M_Window_FileSelector( PyObject * self, PyObject * args )
}
script->py_browsercallback = pycallback;
/* if were not running a script GUI here alredy, then dont make this script persistant */
if ((script->flags & SCRIPT_GUI)==0) {
script->scriptname[0] = '\0';
script->scriptarg[0] = '\0';
}
activate_fileselect( FILE_BLENDER, title, filename, getSelectedFile );
Py_RETURN_NONE;
}