6cee7bb2b7
Merged changes in the trunk up to revision 52191.
...
Conflicts resolved:
source/blender/makesdna/DNA_scene_types.h
2012-11-14 02:01:02 +00:00
093854e564
Docs update for r52164
2012-11-13 17:50:18 +00:00
955b5db5e9
build fix: recent commit broke building on 64bit linux
2012-11-12 03:37:28 +00:00
d22c5d4341
update to python api Gotcha docs to reflect changes to the api. also add a section about modifying linked library data.
2012-11-12 03:23:47 +00:00
7fa096261a
Merged changes in the trunk up to revision 52118.
...
Conflicts resolved:
source/blender/makesrna/intern/rna_scene.c
2012-11-12 00:30:55 +00:00
250109f5ac
add argument so recent bge function mesh.transform_uv() so you can optionally transform between UV1 / UV2
2012-11-10 10:26:39 +00:00
fecc3b9d68
add 2 new utility functions to the BGE mesh py api.
...
mesh.transform(matid, matrix)
mesh.transform_uv(matid, matrix, uv_index=-1))
much more efficient then looping over verts in python to transform them.
2012-11-10 09:45:43 +00:00
f6a110d6ea
BGE: Committing patch [ #32697 ] "New BGE gravity API" by HG1.
...
This patch adds a gravity attribute to KX_Scene.
2012-11-10 03:11:18 +00:00
a8a2782d34
Merged changes in the trunk up to revision 51985.
2012-11-07 22:12:19 +00:00
f840bd4a9f
BGE: This patch adds a character wrapper (similar to the already implemented vehicle wrapper) to control character physics options. Currently supported options are:
...
* jump() -- causes the character to jump
* onGround -- specifies whether or not the character is on the ground
* gravity -- controls the "gravity" that the character physics uses for the character
More options could be added (such as jump speed, step height, make fall speed, max slope, etc).
2012-11-04 20:56:02 +00:00
dd8e836067
Merged changes in the trunk up to revision 51853.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/bmesh/operators/bmo_utils.c
This commit also includes a fix of a bug identified during the merge and committed in revision 51853.
Thanks Thomas (dingto) for the timely fix!
2012-11-04 02:22:56 +00:00
7353f8d58e
remove unneeded string in datatoc.c and correct some of the context types in our documentation.
2012-11-03 09:14:06 +00:00
d24278635a
auto-generated py api now shows bpy.context.* items in the 'References' section of each type.
2012-11-03 07:28:51 +00:00
15ed834343
Merged changes in the trunk up to revision 51718.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/makesrna/intern/rna_scene.c
release/datafiles/startup.blend
2012-10-29 01:09:12 +00:00
aeba4950c3
style cleanup
2012-10-27 10:42:28 +00:00
7c846bbe75
add section on how to run scripts in blender for the API intro, found there were no simple docs like this in the wiki.
...
also set the window type to normal on start when -p argument is given, since the view could be maximized/fullscreen.
2012-10-24 16:55:06 +00:00
4213eca5fc
BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.
...
2 new attributes to ImageViewport and ImageRender object:
depth: set to True to retrieve the depth buffer as an array of float
(not suitable for texture source).
zbuff: set to True to retrieve the depth buffer as a grey scale pixel array
(suitable for texture source).
A new mode 'F' is added to VideoTexture.imageToArray() to allow returning the image
buffer as a one dimensional array of float. This mode should only be used to retrieve
the depth buffer of ImageViewport and ImageRender objects.
Example:
viewport = VideoTexture.ImageViewport()
viewport.depth = True
depth = VideoTexture.imageToArray(viewport,'F')
# show depth of bottom left pixel
# 1.0 = infinite, 0.0 = on near clip plane.
print(depth[0])
2012-10-20 22:28:44 +00:00
55015daa43
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
2012-10-20 16:48:48 +00:00
13d829e57d
* Fix small bug in Python operator example; improved example of modal operator
2012-10-12 18:19:39 +00:00
b1c4809f50
rename BGE KX_GameObject attrs
...
* group -> group_parent
* members -> group_children
so its more clear what direction the relationship is.
2012-10-09 06:03:57 +00:00
8d2835b5e5
patch [ #31875 ] Patch to get scene access through a game object
...
from Jay Parker (battery)
2012-10-09 05:58:09 +00:00
acf3a2790e
api changelog for 2.64 and 2.63 (which I missed last release)
2012-10-09 01:07:08 +00:00
7614428c09
style cleanup: pep8
2012-10-08 10:03:01 +00:00
7beff06950
BGE: Committing patch [ #31442 ] "API improvements: Group references python api, for better control over groups and instances" by Martin Sell (moerdn). This patch adds a member and a group property to KX_GameObject:
...
* KX_GameObject.member returns the list of group members if the object is a group object, otherwise None is returned
* KX_GameObject.group returns the group object that the object belongs to or None if the object is not part of a group
2012-10-07 00:09:02 +00:00
1fe70c07a0
Merged changes in the trunk up to revision 51126.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/windowmanager/WM_types.h
2012-10-06 23:32:21 +00:00
Alex Fraser
27c4c1f417
Added example of KX_GameObject subclassing to game engine docs.
2012-10-02 14:15:02 +00:00
4172997675
Merged changes in the trunk up to revision 50607.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
2012-09-15 00:15:24 +00:00
721c37072e
uncomment data identifiers from sphinx docs (own error made r41509)
2012-09-03 02:08:56 +00:00
141dd5233e
Merged changes in the trunk up to revision 50257.
...
Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
2012-08-29 00:53:29 +00:00
3ec93e8c35
doc type correction
2012-08-22 15:04:11 +00:00
994d75b6ae
spelling cleanup: spelling corrections from user zeffii on IRC.
2012-08-19 15:28:24 +00:00
4ea2fb8b0a
Merged changes in the trunk up to revision 49478.
...
Conflicts resolved:
source/blender/blenkernel/intern/library.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/resources.c
source/blender/makesrna/intern/rna_scene.c
2012-08-02 00:10:05 +00:00
4c5925503e
fix for building docs
2012-07-30 10:44:57 +00:00
4ef8f3f537
code cleanup: assign mode to a variable in the 3d view header and remove some unused imports
2012-07-29 14:07:57 +00:00
4fc078001d
Documentation:
...
* Some UI docs for the Best Practise guide. Still WIP.
2012-07-29 01:38:31 +00:00
7fb85e1fb7
BGE LibLoad: Allow the user to disable loading text datablocks if they want to attempt to increase security by not loading potential Python scripts.
2012-07-22 22:58:12 +00:00
065605e0da
Merged changes in the trunk up to revision 48893.
...
Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
source/blender/blenloader/intern/readfile.c
source/blender/editors/animation/anim_filter.c
source/blender/makesrna/RNA_enum_types.h
2012-07-13 23:23:06 +00:00
9d73cbf2c4
As a response to issue [ #28483 ] "Enable/Disable Rigid Body actuator do nothing" reported by Jean-Francois Gallant (pyroevil), I'm adding preliminary support to enable and disable rigid body physics on dynamic objects. This is can be done via the Edit Object Actuator or through KX_GameObject.enableRigidBody() and KX_GameObject.disableRigidBody(). Thanks to Sergej Reich for his help with the patch.
2012-07-09 04:57:21 +00:00
d77e658c91
Adding a note to KX_Camera.projection_matrix and KX_Camera.modelview_matrix to warn that both values are the identity matrix prior to the first frame of rendering. Both values are calculated when rendering, which is after Python scripts have a chance to run on frame 1.
2012-07-07 06:42:44 +00:00
b7b5029814
Merged changes in the trunk up to revision 48695.
2012-07-06 23:46:48 +00:00
4d2a6a8e21
Spellfixes: colour -> color
2012-07-04 12:19:50 +00:00
468ef74ed7
More spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normalize).
2012-07-03 19:09:07 +00:00
98a7ca61fa
Merged changes in the trunk up to revision 48505.
2012-07-03 00:02:45 +00:00
edf244cbf7
document calling operators with undo enabled.
2012-06-28 08:17:28 +00:00
ecc15e53bd
Removing channel manipulation from the Action Actuator Python API since this has been broken since the animation changes from Pepper. BL_ArmatureObject.channels should be used instead. For more information see bug #28843 for more info:
...
http://projects.blender.org/tracker/index.php?func=detail&aid=28843&group_id=9&atid=306
2012-06-28 06:22:47 +00:00
Dalai Felinto
7016538974
bge.logic.keyboard.getClipboard() and .setClipboard methods
...
the idea of using methods instead of attributes is to avoid users abusing of the system calls.
Thanks Campbell Barton for reviewing and small corrections
2012-06-27 21:57:33 +00:00
15cb064e1b
style cleanup
2012-06-25 07:24:48 +00:00
1f7ae143a2
Merged changes in the trunk up to revision 48227.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_file/filelist.c
2012-06-24 10:29:26 +00:00
98e6912480
style cleanup
2012-06-19 22:17:19 +00:00
b5b8306685
code cleanup: includes, also correct some py example typos
2012-06-16 20:20:07 +00:00