[Bf-blender-cvs] [44fd84bcc33] master: PyAPI: Proper Solution to bpy.app
Aaron Carlisle
noreply at git.blender.org
Thu Jun 15 07:42:49 CEST 2017
Commit: 44fd84bcc332d31c2c7510675ab6fcfb0bbfdf96
Author: Aaron Carlisle
Date: Thu Jun 15 00:54:41 2017 -0400
Branches: master
https://developer.blender.org/rB44fd84bcc332d31c2c7510675ab6fcfb0bbfdf96
PyAPI: Proper Solution to bpy.app
===================================================================
M doc/python_api/rst/bge.app.rst
M source/blender/python/intern/bpy_app.c
===================================================================
diff --git a/doc/python_api/rst/bge.app.rst b/doc/python_api/rst/bge.app.rst
index 326d9651a54..e8b91ffbcaf 100644
--- a/doc/python_api/rst/bge.app.rst
+++ b/doc/python_api/rst/bge.app.rst
@@ -4,15 +4,6 @@ Application Data (bge.app)
Module to access application values that remain unchanged during runtime.
-Submodules:
-
-.. toctree::
- :maxdepth: 1
-
- bpy.app.handlers.rst
- bpy.app.translations.rst
-
-
.. module:: bge.app
.. data:: version
@@ -56,4 +47,3 @@ Submodules:
True if the BGE has been built with physics support.
:type: bool
-
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 47b4e840805..8b3464173d2 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -119,9 +119,21 @@ static PyStructSequence_Field app_info_fields[] = {
{NULL},
};
+PyDoc_STRVAR(bpy_app_doc,
+"This module contains application values that remain unchanged during runtime.\n"
+"\n"
+"Submodules:\n"
+"\n"
+".. toctree::\n"
+" :maxdepth: 1\n"
+"\n"
+" bpy.app.handlers.rst\n"
+" bpy.app.translations.rst\n"
+);
+
static PyStructSequence_Desc app_info_desc = {
(char *)"bpy.app", /* name */
- (char *)"This module contains application values that remain unchanged during runtime.", /* doc */
+ bpy_app_doc, /* doc */
app_info_fields, /* fields */
ARRAY_SIZE(app_info_fields) - 1
};
More information about the Bf-blender-cvs
mailing list