Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-09-04 07:49:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-09-04 07:49:27 +0300
commitf4fb329808a7e7d5b3e452c95c768298f3824bf0 (patch)
tree91c4301511a2cb1c8d8a11c5e47123ae250cacb1 /source/blender/python/intern/bpy_operator_wrap.c
parent85d53620aa698029c83c9b596dbd4dcc8bb5c6da (diff)
RNA/PyAPI: Expose Py classes in bpy.types
Operators and their properties are two different types Previously both operators and their properties are added causing C operators to access the properties, Python the classes. Favor consistency in this case so only Python classes are added.
Diffstat (limited to 'source/blender/python/intern/bpy_operator_wrap.c')
-rw-r--r--source/blender/python/intern/bpy_operator_wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c
index 3afde45195c..9d57adca946 100644
--- a/source/blender/python/intern/bpy_operator_wrap.c
+++ b/source/blender/python/intern/bpy_operator_wrap.c
@@ -53,7 +53,7 @@ static void operator_properties_init(wmOperatorType *ot)
*
* Note the 'no_struct_map' function is used since the actual struct name is already used by the operator.
*/
- RNA_def_struct_identifier(&BLENDER_RNA, ot->srna, ot->idname);
+ RNA_def_struct_identifier_no_struct_map(ot->srna, ot->idname);
if (pyrna_deferred_register_class(ot->srna, py_class) != 0) {
PyErr_Print(); /* failed to register operator props */