Blender
V2.93
source
blender
editors
space_script
script_ops.c
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2008 Blender Foundation.
17
* All rights reserved.
18
*/
19
24
#include <math.h>
25
#include <stdlib.h>
26
27
#include "
WM_api.h
"
28
29
#include "
script_intern.h
"
30
31
/* ************************** registration **********************************/
32
33
void
script_operatortypes
(
void
)
34
{
35
WM_operatortype_append
(
SCRIPT_OT_python_file_run
);
36
WM_operatortype_append
(
SCRIPT_OT_reload
);
37
}
38
39
void
script_keymap
(
wmKeyConfig
*
UNUSED
(keyconf))
40
{
41
/* Script space is deprecated, and doesn't need a keymap */
42
}
UNUSED
#define UNUSED(x)
Definition:
BLI_utildefines.h:683
WM_api.h
SCRIPT_OT_reload
void SCRIPT_OT_reload(wmOperatorType *ot)
Definition:
script_edit.c:151
SCRIPT_OT_python_file_run
void SCRIPT_OT_python_file_run(wmOperatorType *ot)
Definition:
script_edit.c:64
script_intern.h
script_keymap
void script_keymap(wmKeyConfig *UNUSED(keyconf))
Definition:
script_ops.c:39
script_operatortypes
void script_operatortypes(void)
Definition:
script_ops.c:33
wmKeyConfig
Definition:
DNA_windowmanager_types.h:488
WM_operatortype_append
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
Definition:
wm_operator_type.c:135
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1