Sergey Sharybin
bdd4aa27b0
Another set of fixes for recats: osx uses different order of arguments for sort_r
...
and it's callback.
Also do not use char constants like 'NAVM' which is casting to int.
And added defautl section to switch in KX_NavMeshObject::DrawNavMesh.
2011-09-10 14:12:15 +00:00
Campbell Barton
357febc168
fix for building with collada and some other warnings
2011-09-10 09:38:38 +00:00
Campbell Barton
fb4abf2e41
fixed linking with CMake
2011-09-10 03:42:45 +00:00
Campbell Barton
0128218254
recast and detour patch now builds again with GCC
...
- rearrange structs to work for 64bit
- define all vars before goto's
- ifdefs for qsort_r/qsort_s
- dont cast pointers to int only for NULL checks
- dont printf STR_String directly, get the char pointer from it
also minor change to gpu py module, no need to pass empty tuple to PyObject_CallObject, can just be NULL
2011-09-10 03:07:26 +00:00
Guillermo S. Romero
a7f3e347b7
SVN maintenance.
2011-09-09 22:02:12 +00:00
Benoit Bolsee
c1c4743696
svn merge -r 39975:40061 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-09 12:21:41 +00:00
Benoit Bolsee
dbd6658d73
svn merge -r 37306:39975 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-07 15:34:04 +00:00
Campbell Barton
a167ee1262
svn merge -r39951:39986 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-07 00:46:11 +00:00
Campbell Barton
9161d3ce4b
use Py_ssize_t rather than int when dealing with list sizes (original patch from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-09-06 23:46:20 +00:00
Joerg Mueller
813d09cb59
BGE fix: ignore sounds that cannot be opened instead of crashing. ;-)
2011-09-06 21:02:26 +00:00
Campbell Barton
e74e245030
svn merge -r39890:39951 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-06 03:16:12 +00:00
Campbell Barton
0991bed413
fix some complier warnings and add -Wundef to CMake's default GCC warnings.
2011-09-05 23:40:52 +00:00
Brecht Van Lommel
a6d9a5a972
Code cleanup: warning fixes.
2011-09-05 19:27:21 +00:00
Xiao Xiangquan
034cda72d3
add missing files after merging
2011-09-05 14:44:11 +00:00
Mitchell Stokes
103b06d4df
BGE animations: fixing initialization order issues for BL_ActionActuator and BL_ArmatureObject. Thanks to z0r for pointing them out and providing a fix.
2011-09-04 01:42:47 +00:00
Mitchell Stokes
70e3541f3a
BGE animations: Fixing a potential crash when using camera IPOs. The IPOs were being created off of blendercamera->adt->action when they should have been using the supplied action. Thanks to z0r for pointing out the problem and a potential fix.
2011-09-04 01:27:16 +00:00
Mitchell Stokes
1f8291f78d
BGE animations: Adding a separate list to KX_Scene for animated objects. This makes scenes with a lot of non-animated objects faster. In my test scene with 8000 static, non-animated cubes my time spent on animations went from 1.5~1.7ms to 0.001ms.
2011-09-03 20:48:47 +00:00
Mitchell Stokes
8295480bbe
BGE animations: Fixing a crash that would happen if the property for a property mode action actuator was invalid.
2011-09-03 19:33:07 +00:00
Campbell Barton
58227c1016
svn merge -r39878:39890 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-03 12:57:33 +00:00
Campbell Barton
60dcfe2526
fix [ #28462 ] Tiled textures and 2D filters don't mix
...
patch by Juha Mäki-Kanto
2011-09-03 04:44:18 +00:00
Campbell Barton
8e232af37c
svn merge -r39831:39877 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-03 02:49:21 +00:00
Campbell Barton
0cd5dce245
whitespace edits
2011-09-03 02:15:49 +00:00
Mitchell Stokes
99d5fa70de
BGE animations: This is an attempt to help smooth out some more compatibility issues with the new action actuator. It now has a similar pulse behavior to the old actuator. This has worked well in most of my tests, but YoFrankie still has problems, and it appears to have gotten a little worse.
2011-09-01 21:47:46 +00:00
Mitchell Stokes
0f2be67bbf
BGE: Undoing r39729 and applying a simpler fix (ensuring that the viewport is correct for PostRenderScene()). This way both 2d filters and post_draw callbacks with with multiple viewports.
2011-09-01 19:53:14 +00:00
Xiao Xiangquan
981f7fcd0d
merge with trunk r39834
2011-09-01 15:08:32 +00:00
Campbell Barton
2365c64014
whitespace bge edits
2011-09-01 02:12:53 +00:00
Campbell Barton
fb3f7d9566
svn merge -r39792:39829 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-01 00:56:21 +00:00
Campbell Barton
9bc92b2146
svn merge -r39781:39792 https://svn.blender.org/svnroot/bf-blender/trunk/blender , merge pepper, manually merged source/blender/editors/transform/transform_generics.c
2011-09-01 00:35:30 +00:00
Mitchell Stokes
812d5d2e5c
BGE Animations: The return type for KX_GameObject.getActionFrame() was an integer when it should have been a float. I've fixed this and converted the tabs in the new BGE animation docs to space. I have also added more info on return types for KX_GameObject.getActionFrame() and KX_GameObject.isPlayingAction().
2011-08-31 22:32:14 +00:00
Mitchell Stokes
f63d049adc
BGE: Adding two new functions to bge.render to allow users to change the anisotropic filtering level used by textures:
...
* setAnisotropicFiltering(level)
* getAnisotropicFiltering()
2011-08-31 05:51:51 +00:00
Campbell Barton
471c005137
typo fix: end of lines ;; --> ;
2011-08-31 01:07:55 +00:00
Joerg Mueller
947d4a654b
Fix for [ #25062 ] Sound Actuator - Positional Audio.
...
Now all sounds that are not mono but have 3D checked automatically get reduced to mono during BGE conversion time.
Also removed the now unneeded function sound_get_channels and added a missing header file to audaspace's CMakeLists.txt.
2011-08-30 10:09:10 +00:00
Joerg Mueller
43ab8e8624
* Merge trunk up to r39790.
...
* Subversion bump (also for init_userdef_do_versions).
* Minor fix for compilation without ffmpeg.
2011-08-30 08:22:03 +00:00
Campbell Barton
c5a3f361a0
svn merge -r39765:39781 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-30 00:23:11 +00:00
Mitchell Stokes
296cc41b03
BGE Animations: Various changes to make code reviewers happy:
...
* Naming/style changes
* Taking advantage of switch statements
* Removing unneeded NULL checks
* etc
2011-08-29 06:19:55 +00:00
Dalai Felinto
ea07e367c5
bge bugfix: [ #28362 ] Controllers names appear incorrectly with a python query
...
the uniquename was never fully implemented for sensors and actuators, only for controllers.
at some point we either get rid of all of them, or bring them all on.
For now removing the "unique name" of controllers
2011-08-29 03:20:15 +00:00
Campbell Barton
5065d4c744
svn merge -r39664:39762 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-29 00:46:56 +00:00
Joerg Mueller
b4b046995b
* Removing mocap GSoC (is an addon already).
...
* Fixing ffmpeg-0.8 errors.
* Fixing Ketsji paths.
* Removing DoSound from BGE.
* Fixing audio scene update to use only current scene objects.
2011-08-28 14:21:44 +00:00
Campbell Barton
c73d5b939d
check for unlikely error when freeing a library blend file from the BGE.
2011-08-28 05:01:16 +00:00
Campbell Barton
c96f28a718
- use %u rather tham %d for unsigned ints in string formatting funcs.
...
- replace (strlen(str) == 0) with str[0]=='\0'
2011-08-27 03:25:02 +00:00
Campbell Barton
6926060185
- fix for BL_Shader::SetUniform() missing out the last part of the matrix.
...
- particle.c wasn't setting all components of the vector when reading cache and setting dummy velocity values.
- some functions incorrectly took a float[3] argument when the 4th value was set.
- remove a few redundant lines of code.
2011-08-27 03:20:32 +00:00
Mitchell Stokes
555f6cbe08
BGE: Post drawing callbacks are now done per viewport instead of per scene. This is handy for things like having a different HUD for each player in a splitscreen game. To figure out what viewport you're drawing too, check the scene's active_camera.
2011-08-27 03:19:46 +00:00
Campbell Barton
94b3e83b6c
fix for bug with all rotation modes being treated as euler by the BGE, this bug is in trunk too but fixing here because this code will replace whats in trunk.
...
also make initializers less verbose for ipo transform assignment.
2011-08-27 03:13:54 +00:00
Campbell Barton
974a06823e
bge py api XK_GameObject.linVelocityMin was returning linVelocityMax.
2011-08-27 01:37:47 +00:00
Mitchell Stokes
7fc26e0123
Committing patch #25675 "Make "Cast Buffer Shadows" option work in viewport and BGE" by me.
...
Description from the tracker:
"It's really handy to be able to prevent an object/material from casting a shadow. So, I made use of the Cast Buffer Shadows option in the material settings, and made it work in the viewport and the BGE."
2011-08-24 20:28:54 +00:00
Campbell Barton
fd4575b2e3
svn merge -r39493:39664 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 02:29:45 +00:00
Joerg Mueller
f0d5abfcb2
Merging trunk up to r39637.
2011-08-22 20:31:46 +00:00
Joerg Mueller
a71c215f22
3D Audio GSoC:
...
Final GSoC commit.
* Bugfix: Negative frames crashed
* Bugfix: JOS sample buffer size prediction error (wasted memory)
* Optimisation: for JOS upsampling (around 12 % difference measured here)
* Optimisation: Better filter for JOS resampling
* Bugfix: Error in relative 3D audio code.
* Removed Attenuation
* Bugfix: Multiple scenes in BGE lead to errors, BGE audio now all relative, to support multiple scenes.
2011-08-22 18:59:56 +00:00
Campbell Barton
17c8621cc8
fix [bf-blender-Patches][27924] Redundant applying of SetNetworkDevice
...
noticed by Jorge Bernal (lordloki)
2011-08-21 21:17:55 +00:00
Mitchell Stokes
db4071d2b6
BGE Animations: Lamp and Camera IPOs are now handled like object IPOs, which means lamps and cameras are no longer stuck to just their active action. However, the Blender UI seems a little restrictive in this area.
2011-08-17 09:38:50 +00:00