Merged changes in the trunk up to revision 51448.
Conflicts resolved: source/blender/blenkernel/CMakeLists.txt source/blender/blenloader/intern/readfile.c source/blender/editors/mesh/editmesh_tools.c source/blender/makesrna/intern/rna_main_api.c
This commit is contained in:
@@ -26,8 +26,8 @@ class CustomDrawOperator(bpy.types.Operator):
|
||||
return {'FINISHED'}
|
||||
|
||||
def invoke(self, context, event):
|
||||
context.window_manager.fileselect_add(self)
|
||||
return {'RUNNING_MODAL'}
|
||||
wm = context.window_manager
|
||||
return wm.invoke_props_dialog(self)
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
@@ -40,15 +40,17 @@ class ModalOperator(bpy.types.Operator):
|
||||
elif event.type == 'LEFTMOUSE': # Confirm
|
||||
return {'FINISHED'}
|
||||
elif event.type in ('RIGHTMOUSE', 'ESC'): # Cancel
|
||||
context.object.location.x = self.init_loc_x
|
||||
return {'CANCELLED'}
|
||||
|
||||
return {'RUNNING_MODAL'}
|
||||
|
||||
def invoke(self, context, event):
|
||||
self.init_loc_x = context.object.location.x
|
||||
self.value = event.mouse_x
|
||||
self.execute(context)
|
||||
|
||||
print(context.window_manager.modal_handler_add(self))
|
||||
context.window_manager.modal_handler_add(self)
|
||||
return {'RUNNING_MODAL'}
|
||||
|
||||
|
||||
|
||||
@@ -333,7 +333,8 @@ Types
|
||||
|
||||
.. attribute:: useContinue
|
||||
|
||||
The actions continue option, True or False. When True, the action will always play from where last left off, otherwise negative events to this actuator will reset it to its start frame.
|
||||
The actions continue option, True or False. When True, the action will always play from where last left off,
|
||||
otherwise negative events to this actuator will reset it to its start frame.
|
||||
|
||||
:type: boolean
|
||||
|
||||
@@ -879,7 +880,8 @@ Types
|
||||
|
||||
.. note::
|
||||
|
||||
Calling ANY method or attribute on an object that has been removed from a scene will raise a SystemError, if an object may have been removed since last accessing it use the :data:`invalid` attribute to check.
|
||||
Calling ANY method or attribute on an object that has been removed from a scene will raise a SystemError,
|
||||
if an object may have been removed since last accessing it use the :data:`invalid` attribute to check.
|
||||
|
||||
KX_GameObject can be subclassed to extend functionality. For example:
|
||||
|
||||
@@ -986,6 +988,24 @@ Types
|
||||
The object's parent object. (read-only).
|
||||
|
||||
:type: :class:`KX_GameObject` or None
|
||||
|
||||
.. attribute:: group_children
|
||||
|
||||
Returns the list of group members if the object is a group object, otherwise None is returned.
|
||||
|
||||
:type: :class:`CListValue` of :class:`KX_GameObject` or None
|
||||
|
||||
.. attribute:: group_parent
|
||||
|
||||
Returns the group object that the object belongs to or None if the object is not part of a group.
|
||||
|
||||
:type: :class:`KX_GameObject` or None
|
||||
|
||||
.. attribute:: scene
|
||||
|
||||
The object's scene. (read-only).
|
||||
|
||||
:type: :class:`KX_Scene` or None
|
||||
|
||||
.. attribute:: visible
|
||||
|
||||
@@ -4546,7 +4566,9 @@ Types
|
||||
|
||||
.. data:: KX_ACT_ARMATURE_RUN
|
||||
|
||||
Just make sure the armature will be updated on the next graphic frame. This is the only persistent mode of the actuator: it executes automatically once per frame until stopped by a controller
|
||||
Just make sure the armature will be updated on the next graphic frame.
|
||||
This is the only persistent mode of the actuator:
|
||||
it executes automatically once per frame until stopped by a controller
|
||||
|
||||
:value: 0
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -28,15 +28,15 @@ blender --background --python doc/python_api/sphinx_changelog_gen.py -- --dump
|
||||
|
||||
# create changelog
|
||||
blender --background --python doc/python_api/sphinx_changelog_gen.py -- \
|
||||
--api_from blender_2_56_1.py \
|
||||
--api_to blender_2_57_0.py \
|
||||
--api_from blender_2_63_0.py \
|
||||
--api_to blender_2_64_0.py \
|
||||
--api_out changes.rst
|
||||
|
||||
|
||||
# Api comparison can also run without blender
|
||||
python doc/python_api/sphinx_changelog_gen.py \
|
||||
--api_from blender_api_2_56_6.py \
|
||||
--api_to blender_api_2_57.py \
|
||||
python doc/python_api/sphinx_changelog_gen.py -- \
|
||||
--api_from blender_api_2_63_0.py \
|
||||
--api_to blender_api_2_64_0.py \
|
||||
--api_out changes.rst
|
||||
|
||||
# Save the latest API dump in this folder, renaming it with its revision.
|
||||
@@ -307,6 +307,8 @@ def api_changelog(api_from, api_to, api_out):
|
||||
|
||||
fout.close()
|
||||
|
||||
print("Written: %r" % api_out)
|
||||
|
||||
|
||||
def main():
|
||||
import sys
|
||||
@@ -347,6 +349,7 @@ def main():
|
||||
args = parser.parse_args(argv) # In this example we wont use the args
|
||||
|
||||
if not argv:
|
||||
print("No args given!")
|
||||
parser.print_help()
|
||||
return
|
||||
|
||||
|
||||
@@ -400,7 +400,7 @@ SPHINX_THEMES = {'bf': ['blender-org'], # , 'naiad',
|
||||
|
||||
available_themes = SPHINX_THEMES['bf'] + SPHINX_THEMES['sphinx']
|
||||
if ARGS.sphinx_theme not in available_themes:
|
||||
print ("Please choose a theme among: %s" % ', '.join(available_themes))
|
||||
print("Please choose a theme among: %s" % ', '.join(available_themes))
|
||||
sys.exit()
|
||||
|
||||
if ARGS.sphinx_theme in SPHINX_THEMES['bf']:
|
||||
|
||||
Reference in New Issue
Block a user