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-31building the BGE without bullet works again.Campbell 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-26Added function RNA_property_update_check() to check if an update call is needed,Campbell Barton
Simple python benchmark shows this to be about 3x faster in the case where an update isn't needed. This also speeds up rna function argument parsing, since each arg in a function call did 2 string lookups on the context which were never needed.
2010-10-25bugfix [#22277] Absolute Shapekeys crash (in BGE)Campbell Barton
running a shape actuator on a softbody would crash because it assumed the deformer was a BL_MeshDeformer. Added TODO note, since it would be nice if softbody would work with shape keys too.
2010-10-23use explicit file paths for CMake rather then globing, This is recommended ↵Campbell Barton
by cmake devs. globbing vs explicit is discussed here. http://www.cmake.org/pipermail/cmake/2008-December/025694.html Practical implications are: - developers need to keep CMakeLists.txt files up to date. - Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-22fix for BGE define in recent math changes.Campbell Barton
2010-10-20Quiet compiler warnings.Campbell Barton
2010-10-18Use DEBUG instead of NDEBUGNathan Letwory
2010-10-18remove G.sce, use G.main->name instead.Campbell Barton
Both stored the filename of the blend file, but G.sce stored the last opened file. This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore). Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend.
2010-10-17- fixed remaining unused warnings.Campbell Barton
- omit render code from this warning (cmake only), until render branch is merged. - moved -Wunused-parameter warning to apply to all C code in blender (not just ./source/blender), (cmake only).
2010-10-16Now sound init param removal revert should be fine (apparently my cmake ↵Nathan Letwory
project files missed rebuild hint for these, fortunately SCons did its job well).
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16- UNUSED macro wasn't throwing an error with GCC if a var become used.Campbell Barton
- made interface, windowmanager, readfile build without unused warnings. - re-arranged CMake's source/blender build order so less changed libs are build later, eg: IK, avi
2010-10-13== python api doc ==Luca Bonavita
First commit to make some structure in doc/ directory. - moved source/blender/python/doc -> doc/python_api - moved source/gameengine/PyDoc/*.rst -> doc/python_api/rst - modified accordingly sphinx_doc_gen.py and sphinx_doc_gen.sh (later on I'll try alternative/ scripts by neXyon as promised :) - source/gameengine/PyDoc/ is still there because contains epydoc stuff for the bge, will ask more and look into it later
2010-10-12BGE Bugfix for [#22371] Alpha Planes affecting 2DFiltersDalai Felinto
disabling GL_Blend at the 2dfilter drawing routine makes the trick here. there is not a clear function invoked before the 2dfilter drawing routine. Therefore I found better to disable alpha blending while we are setting the other OpenGl attributes/matrixes. We are not re-enabling GL_BLEND after we disable it. We could and it wouldn't hurt but I can't see why to. open to suggestions here of course.
2010-10-11make file update for recent bge.render.makeScreenshot commitDalai Felinto
2010-10-11BGE object.life - gives you the life countdown for temporary objects.Dalai Felinto
Whenever using AddObject actuator, this feature gives you control over morbid events (a.k.a. trigger events before the object ends). Demo file here: http://blenderecia.orgfree.com/blender/tmp/cube_life.blend Feature implemented as part of the BGE development workshop in BlenderPRO 2010 - Fortaleza, Brazil
2010-10-11building without python works again for the BGECampbell Barton
2010-10-10enable building the game engine without bullet for scons & cmakeCampbell Barton
2010-10-09patch [#24178] bge.render.makeScreeshot - with help from Campbell(ideasman42)Dalai Felinto
This patch brings back the old functionality from Blender 2.49. However we are forcing the format to be PNG only (as we had previously on blenderplayer). Note: If letterboxing is on, we are recording only the camera area of the canvas (cool hein?). Note2: I have a feeling that this is faster than what we had in 2.49 (which was really slow imo). Maybe it could be even faster if we disable PNG compression. Maybe an option for the future. * patch finalized and committed as part of the BlenderPRO 2010 - BGE development workshop :) *
2010-10-09patch [#23781] Dynamically Load ActionsCampbell Barton
from Mitchell Stokes (moguri)
2010-10-09Fixing a memory leak with SCA_PythonKeyboard and SCA_PythonMouse.Mitchell Stokes
2010-10-09Enable CXX_GUARDEDALLOC support through SCons.Nathan Letwory
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-05Updating the bge.types docs to note which KX_GameObject attributes return ↵Mitchell Stokes
mathutils objects. Also adding localLinearVelocity, worldLinearVelocity, localAngularVelocity, and worldAngularVelocity to the KX_GameObject docs.
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-10-03Fix attribution, as noticed by Dalai Felinto.Guillermo S. Romero
2010-10-03Making the docs for bge.types.KX_SCA_AddObjectActuator.instantAddObject() ↵Mitchell Stokes
more clear. Thanks to delaney for pointing this out.
2010-10-02Fix #23785: in the game engine, if an object had an armature modifier + anotherBrecht Van Lommel
modifier, it would apply the armature deformation twice.
2010-09-30use constant rather then sqrt(2.0)Campbell Barton
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-16Fix #23857: game engine world colors were not color corrected yet,Brecht Van Lommel
giving inconsistent results with render/UI.
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-15BGE Dome: fix for "objects parented to the camera will be rendered multiple ↵Dalai Felinto
times in Dome mode" The funny thing is: I only spotted this bug in March of this year. Almost one year after the original release. I think I don't parent objects to the camera often. In terms of code I think that I can even think in a more elegant solution. I don't really need to rotate the camera, but simply to calculate its Modelview Matrix. """ m_rasterizer->SetViewMatrix(viewmat, cam->NodeGetWorldOrientation(), cam->NodeGetWorldPosition(), 1.0); cam->SetModelviewMatrix(viewmat); """ The reason why I originally was rotating the camera was to make sure the frustum calculation was using the right camera frustum. For the frustum it takes the camera modelviewmatrix so the rotation really shouldn't be necessary. Leaving as it's for the time being. * Note: the bug was never officially reported
2010-09-14blenderplayer fix for "offset" problem when in fullscreen mode (worked ↵Dalai Felinto
together with Nathan Letwory - jesterKing) The FullScreen state was never set. Therefore the window boundary was returning the wrong dimensions (it was assuming that it was not fullscreen). * Note: blender.exe -W has a similar problem. We are working on that ... Tested in Windows only. If someone can test in Linux and OSX please let me know if it's good there as well. To test it: ./blenderplayer -f myfile.blend
2010-09-13blenderplayer parsing code (better) fixDalai Felinto
After last commit I realized that we have a different behavior when running blenderplayer or a runtime. Reason being is that when running blenderplayer the filename is mandatory. While in runtime mode it has no use for it (it can still be passed, but it makes no difference). I also updated the -h (help) message to be multiplataform and to pass the filename argument only when in blenderplayer mode. If someone wants to have fun it would be nice to port the blender new parsing code to the gameplayer. * note: how come "noaudio" is used in the examples but it's not in the options list? *ouch* I'm leaving as it's in case noaudio get implemented ...
2010-09-13blenderplayer commandline argument fixes (for -f and -w)Dalai Felinto
argc always include the filename, therefore all the optional parameters should check for < argc instead of <=argc. E.g. That was causing "blenderplayer -f 800 600 myfile.blend" to play in a wrong Bpp (since it was trying to parse the filename to fullScreenBpp). Bug introduced on rev. 16448 (in 2.49) and merged to 2.5 in rev. 19323
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-09-07- added back zlib include (needed for win32).Campbell Barton
- use list append in more places. - remove non existing include dir.
2010-09-03SVN maintenance.Guillermo S. Romero
2010-08-30Committing patch [#23489] add method getEventStatus() to PythonKeyboard and ↵Mitchell Stokes
PythonMouse by Geoff Gollmer (gomer) This patch makes SCA_PythonKeyboard.events and SCA_PythonMouse.events return a dictionary of all inputs (including inactive) instead of a list of active inputs. Example usage: import bge if bge.logic.keyboard.events[bge.events.SPACEBAR] = bge.logic.KX_INPUT_JUST_ACTIVATED: print("Spacebar pressed!") A couple of changes to the patch: * Wrap python stuff in #ifndef DISABLE_PYTHON * Clear and decref m_event_dict in the destructors A couple of things not related to the patch: * Made member variables private * Removed a commented out (and no longer used) method (SCA_PythonMouse.show())
2010-08-30Finally change SConscript tabs to spaces.Nathan Letwory
2010-08-29BGE patch #22623 applied: new bound type: Capsule.Benoit Bolsee
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-27own rna naming commits r31439 r31472 also renamed BGE vars unintentionallyCampbell Barton
2010-08-25Fix BGE bug reported by Gilberto: BL_AmartureObject.channels returns only ↵Benoit Bolsee
one channel. Fix BL_ArmatureChannel.joint_rotation now that bPoseChannel structure is passed directly to the get function.