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
AgeCommit message (Collapse)Author
2010-10-31rename and negate DISABLE_PYTHON --> WITH_PYTHONCampbell Barton
2010-10-30Build fix by Mike SDaniel Salazar
2010-10-27workaround for python bug [#24400] If Script is executed with TEXT Editor, ↵Campbell Barton
it becomes an error. having the blend file as a part of the __file__ variable is not essential, this is fixed in python 3.2 so add an ifdef and don't use the blend file path for py older then 3.2.
2010-10-26move geometry python module into mathutils.geometry, since it provides ↵Campbell Barton
utility functions using mathutils types.
2010-10-11building without python works again for the BGECampbell Barton
2010-10-09Fixing a memory leak with SCA_PythonKeyboard and SCA_PythonMouse.Mitchell Stokes
2010-10-06Campbell requested that I remove one of the bge.events.RETKEY aliases, so ↵Mitchell Stokes
I'm removing bge.events.RETURNKEY.
2010-10-05A bit of bge.events work:Mitchell Stokes
* A few places in the bge.events docs mentioned bge.keys, when it should have been bge.events * Created two aliases to bge.events.RETKEY: ENTERKEY and RETURNKEY * ENTERKEY and RETURNKEY have been added to the docs and RETKEY marked as deprecated * Added an example of using bge.logic.keyboard to the bge.events docs
2010-10-04bugfix [#24087] Blender can not install add-ons unless running with root ↵Campbell Barton
priviledges now addon path is created using the same path functions and selecting where to save the startup.blend also made some minor changes to path handling funcs.
2010-09-18* Update BGE for change in r32001Nathan Letwory
* Fix var declaration in bpy_interface.c * Remove forward declarations from py_capi_utils.h: they are unnecessary and break compiles (there were probably many warnings about this during compile with GCC).
2010-09-15update for MingW/CMakeCampbell Barton
- ignore MSVC warnings when FREE_WINDOWS is defined to quiet warnings. - the CMake flags were not being set correctly making blender have weirdo colors (no -funsigned-char).
2010-09-11BGE module reshuffling - VideoTexture -> bge.textureDalai Felinto
this was the one module left to be renamed. We didn't get to any conclusion in the mailing list, but Campbell suggested texture and I think its a good name. We can change any time before next Beta, but for now I think it's handy to have something. The original proposal is from May: http://lists.blender.org/pipermail/bf-committers/2010-May/027587.html
2010-08-28After talking with Campbell, we came to the conclusion that it was probably ↵Mitchell Stokes
best not to auto-import modules. To this end, I'm removing the automatic import of the bge module.
2010-08-28Committing patch [#23278] (by me)Mitchell Stokes
This patch allows a user to pass binary data to LibLoad() to load a blend file from memory instead of a file path. I don't know how useful this will be for others, but I've used it so far for: * Decrypting .blend files and loading them without having to store the .blend on the hard drive * Pulling .blend data out of an archive and loading it (again skipping the hard drive) So, it seems the biggest use for this is skipping a bit of file IO (and possibly some security problems). Example usage: import bge with f as open('myfile.blend', 'rb'): data = f.read() bge.logic.LibLoad('Name', 'Scene', data)
2010-08-17Audaspace: This should fix all missing python includes now once for all...Joerg Mueller
2010-08-13svn merge -r 31211:31313 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-11Blender Py API: GameLogic -> bge.logicJoerg Mueller
2010-08-10moved idcode functions into their own file (was added as a todo in the ↵Campbell Barton
comments), these were mixed in with file reading code - BLO_readfile.h bot these functions are not spesific to reading.
2010-08-07svn merge -r 31060:31144 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-06fix for fake python bge.* module, this is really nasty temp py code! (not a ↵Campbell Barton
good example)
2010-08-05svn merge -r 30954:31059 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-05bugfix [#23148] "ImportError: __import__ not found" on changing Render FPSCampbell Barton
The BGE was getting the namespace dict directly from __main__ which conflicts with my recent fix to get the pickle module working which to overwrote the __main__ module on script execution. Simple fix is to have the BGE and Blender use the same method of getting namespaces. Renamed CreateGlobalDictionary() to bpy_namespace_dict_new() and moved into bpy_internal_import.c pickle still wont work in the BGE since we make a copy of __main__ namespace but for speed would rather not have to replace the __main__ module many times per second.
2010-07-21Moved constants names from KX_ACT_CONSTRAINT_foo to KX_CONSTRAINTACT_foo.Joerg Mueller
2010-07-14Removed stopDSP, relict from FMOD.Joerg Mueller
2010-07-13Merging revision 30126:30261 from trunk.Joerg Mueller
2010-07-12BGE bug #22760: VideoTexture not available when Blender is compiled without ↵Benoit Bolsee
FFMPEG. VideoTexture can be used without FFMPEG, no need to disable it.
2010-07-09Audaspace:Joerg Mueller
* Renamed AUD_Handle to AUD_Channel in the C-API to prevent errors with the C++ version of AUD_Handle. * Added Python API!!!
2010-06-06- WITH_CXX_GUARDEDALLOC working againCampbell Barton
- CMake building without python or fluidsim working again (broke in recent commit) - remove BLI_short_filename(), it wasnt used anywhere.
2010-06-03== python api docs ==Luca Bonavita
* source/blender/python/doc/sphinx_doc_gen.py changed syntax for declating attributes type to use :type: instead of *type* os it * source/gameengine/Ketsji/KX_PythonInit.cpp While documenting I've found that we have two naming conventions for constraints in BGE python api, example: KX_CONSTRAINTACT_DIRPZ and KX_ACT_CONSTRAINT_FHPX: the right convention is KX_CONSTRAINTACT_xxx After talking with dalai and cambpell we agreed that this kind of change is better suited for NExyon GSoC so I marked as TODO Also, found 2 duplicate rows, fixed after askin nexyon * source/gameengine/PyDoc/bge.logic.rst there were 2 blocks for constraints, I've put them together in docs and fixed some other lines * source/gameengine/PyDoc/bge.types.rst first cleanup: mainly started using ":type:", it was mixed usage of *type* and **type** started cleaning some bullet list in a way that varibles link to the constant in appropriate page I'll continue later
2010-06-02rename some rna properties filename --> filepathCampbell Barton
* filename == "foo.ext" * filepath == "/path/to/and/including/foo.ext" this was alredy followed in some places not not everywhere.
2010-06-02BGE: Moving Constraint Actuator Defines. It was leading to some errors in ↵Dalai Felinto
documentation
2010-05-30reverting previous commit from Mitchell. His commit went to the trunk ↵Dalai Felinto
instead of the branch :) svn merge -r 29067:29066 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-05-30Reversing the last merge because I botched it.Mitchell Stokes
2010-05-05[#22177] Adding BLF to the BGE and exposing BLF_load as blf.loadCampbell Barton
from Mitchell Stokes (moguri) also updated blf docs
2010-04-20Added F13 - F19 keys for game engine too.Matt Ebb
2010-04-17Patch #21789 - BGE Keyboard and Mouse Python types - by Mitchell Stokes(Moguri)Dalai Felinto
The patch exposes mouse and keyboard read-only properties in the GameLogic module Also renames bge.keys to bge.events (* Note: name of bge submodules (logic, render, ...) may change before 2.5 final release [right Campbell?]). """ This patch adds two new types to the BGE: SCA_PythonKeyboard SCA_PythonMouse These two types allow users to make use of the keyboard and mouse without the need for a keyboard or mouse sensor. SCA_PythonKeyboard has an events property that acts just like SCA_KeyboardSensor.events. SCA_PythonMouse also has an events property to check for mouse events. Further more it supports getting and setting normalized cursor position (from 0.0 to 1.0) with SCA_PythonMouse.position. The cursor can be shown/hidden using SCA_PythonMouse.visible. """ Its use is similar with current mouse and keyboard controllers. With the exception of mouse position being normalized and writable as well (replacing Rasterizer.setMousePosition). Code Sample: ###### from bge import logic, events mouse = logic.mouse keyboard = logic.keyboard for key,status in keyboard.events: if status == logic.KX_INPUT_JUST_ACTIVATED: if key == events.WKEY: print(mouse.position) # move_forward() mouse.visible = True # turn cursor visible mouse.position = 0.5,0.5 # centralize mouse - use tuple ###### * Important Note: mouse.position still will not work properly for Letterbox mode. In order to fix letterboxing I may need to move the set x,y mouse function to inside the canvas code (to avoid duplicated code between mouse sensor and bge.logic.mouse). I'll leave this for another commit though. Thanks Mitchell for the work on that.
2010-04-11PyAPICampbell Barton
- added new mathutils.Color() type, use with rna so we can do for eg: material.diffuse_color.r = 1.0 # also has hsv access material.diffuse_color.s = 0.6 - made Mathutils and Geometry module names lowercase.
2010-04-11py api file renameCampbell Barton
- prefix mathutils api. - 2 blf.c files (annoying for debugging) - py api docs ignore keying sets as with operators.
2010-03-09rename some functions to use easier to understand names.Campbell Barton
'BLI_makestringcode' --> 'BLI_path_rel' 'BLI_convertstringcwd' --> 'BLI_path_cwd' 'BLI_convertstringframe' --> 'BLI_path_frame' 'BLI_convertstringframe_range' --> 'BLI_path_frame_range' 'BLI_make_cwdpath' --> 'BLI_path_cwd'
2010-03-08image re-project now uses offscreen render function and has input for render ↵Campbell Barton
size. unrelated changes that ended up being more trouble to commit separate... - removed BLI_split_dirfile(), was nasty, occasionaly modifying the source string, it could create directories and used the $CWD in some cases. was only used in 2 places in filesel.c, if this gives problems can address without bringing back this function. renamed BLI_split_dirfile_basic --> BLI_split_dirfile - view3d_operator_needs_opengl was being called for offscreen render when it wasnt needed.
2010-02-28make BGL and BLF modile names lowercaseCampbell Barton
2010-02-22use BLI_findstring in more places & remove some warnings, no functional changes.Campbell Barton
2010-02-12correct fsf addressCampbell Barton
2010-01-30BGE: patch [#20293] Added python sensor attribute: Status.Benoit Bolsee
2010-01-30BGE: patch #20399 Python control over adding/removing scenes.Benoit Bolsee
2010-01-11evil 1 liner to get bge.logic, bge.render, bge.keys etc.. may eventually ↵Campbell Barton
replace GameLogic, GameKeys module names.
2010-01-11get rid of annoying duplicate python initialization code, added ↵Campbell Barton
setupGamePython() which initializes modules
2009-11-20option to have scripts run on startup for per blendfile UI'sCampbell Barton
2009-11-16BGE: dynamic loading patch commited. API and demo files available here: ↵Benoit Bolsee
https://projects.blender.org/tracker/?func=detail&aid=19492&group_id=9&atid=127
2009-10-30BGE patch #19751: Add game actuator like methods to GameLogic.Benoit Bolsee