6 * Function(s) related to struct script management.
8 * ***** BEGIN GPL LICENSE BLOCK *****
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
25 * All rights reserved.
27 * This is a new part of Blender.
29 * Contributor(s): Willian P. Germano.
31 * ***** END GPL LICENSE BLOCK *****
34 #include "BKE_script.h"
35 #include "DNA_space_types.h"
37 #include "MEM_guardedalloc.h"
38 #include "BKE_bad_level_calls.h" /* for BPY_clear_script */
41 #include "BLI_blenlib.h"
42 #include "BKE_utildefines.h"
43 #include "BKE_library.h"
44 #include "BKE_global.h"
47 #ifndef DISABLE_PYTHON
48 #include "BPY_extern.h" // Blender Python library
56 /* XXX this function and so also the file should not be needed anymore,
57 * since we have to force clearing all Python related data before freeing
58 * Blender's library. Still testing, will decide later (Willian). */
59 void free_script (Script *script)
62 #ifndef DISABLE_PYTHON
63 BPY_clear_script(script);