blender.git
7 years agonew convenience makefile targets for static source code cheching: check_splint/check_...
Campbell Barton [Fri, 16 Sep 2011 06:58:20 +0000 (06:58 +0000)]
new convenience makefile targets for static source code cheching: check_splint/check_sparse/check_cppcheck

7 years agoreplace macros with math lib functions
Campbell Barton [Fri, 16 Sep 2011 06:56:50 +0000 (06:56 +0000)]
replace macros with math lib functions

7 years ago- fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
Campbell Barton [Fri, 16 Sep 2011 06:47:01 +0000 (06:47 +0000)]
- fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
- remove redundant NULL checks on old code where it would crash if the result was NULL later on.
- add some missing NULL checks.

7 years ago- remove deprecated pose channel members
Campbell Barton [Fri, 16 Sep 2011 02:42:50 +0000 (02:42 +0000)]
- remove deprecated pose channel members
- change short -> char for flags that support it.
- add pose 'temp' pointer to use for outliner drawing (was using 'prev' and restoring which seems dodjy)

7 years agofix [#28668] Crashes entering edit mode on Armature
Campbell Barton [Fri, 16 Sep 2011 02:08:00 +0000 (02:08 +0000)]
fix [#28668] Crashes entering edit mode on Armature

7 years agoWeightVG: Made Edit and Proximity also use the new weightvg_update_vg MDeformWeight...
Bastien Montagne [Thu, 15 Sep 2011 17:28:18 +0000 (17:28 +0000)]
WeightVG: Made Edit and Proximity also use the new weightvg_update_vg MDeformWeight** parameter (to avoid another vgroup searching).
Also added to Proximity a check in case vgroup would have no vertices in it.
Plus a few minor edits...

7 years agoSVN maintenance.
Guillermo S. Romero [Thu, 15 Sep 2011 16:37:36 +0000 (16:37 +0000)]
SVN maintenance.

7 years ago- include enum names and descriptions in sphinx generated documentation
Campbell Barton [Thu, 15 Sep 2011 16:15:24 +0000 (16:15 +0000)]
- include enum names and descriptions in sphinx generated documentation
- add descriptions for operator bl_options

7 years agoWeightVG utils, weightvg_update_vg func updates.
Bastien Montagne [Thu, 15 Sep 2011 16:06:00 +0000 (16:06 +0000)]
WeightVG utils, weightvg_update_vg func updates.
* Added an optional array of MDeformModifier pointers, to avoid another search based on defgrp_idx.
* Split out "add/remove verts from vgroup" functions, preparing their move to deform.c (if their current form is validated!).

7 years agoUse static context trick for all platforms.
Sergey Sharybin [Thu, 15 Sep 2011 15:29:40 +0000 (15:29 +0000)]
Use static context trick for all platforms.

Should be safe until modifier stack is not threaded.
Solves issues with mingw and older glibc version (like used in release environment).

7 years agoWeightVG Mix modifier: updated code to use defgrp_find_index, and make MDeformWeights...
Bastien Montagne [Thu, 15 Sep 2011 14:48:50 +0000 (14:48 +0000)]
WeightVG Mix modifier: updated code to use defgrp_find_index, and make MDeformWeights be searched only once.
Also fixed a bug: when another set mode than "All Vertices" was used and resulting set of verts was empty, all vertices was used, instead of just returning org, unmodified data!

7 years ago- Whitespace fixes (was commiting from windows where text editor wasn't configured...
Sergey Sharybin [Thu, 15 Sep 2011 13:14:46 +0000 (13:14 +0000)]
- Whitespace fixes (was commiting from windows where text editor wasn't configured, pardon)
- Fixing typo in description of GP paint mode.

7 years agoreplace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
Campbell Barton [Thu, 15 Sep 2011 12:26:48 +0000 (12:26 +0000)]
replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
also replace strcpy's which copy using "" with str[0]='\0'

7 years agofix [#28658] python can assign non utf8 and crash because of string lenth limits.
Campbell Barton [Thu, 15 Sep 2011 11:49:36 +0000 (11:49 +0000)]
fix [#28658] python can assign non utf8 and crash because of string lenth limits.

add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.

7 years agoUpdate build rules to deal with new gettext libraries.
Sergey Sharybin [Thu, 15 Sep 2011 11:37:42 +0000 (11:37 +0000)]
Update build rules to deal with new gettext libraries.

7 years agoFix [#28654] Warp modifier does not support negative strength when Vertex Group is...
Bastien Montagne [Thu, 15 Sep 2011 11:18:15 +0000 (11:18 +0000)]
Fix [#28654] Warp modifier does not support negative strength when Vertex Group is used.
The vg weight was multiplied by org strength (i.e. neg strength was always skiping all verts!), now multiplying it with abs value of strength.

7 years agoNew C/Py api utility function PyC_Err_Format_Prefix() which raises an error with...
Campbell Barton [Thu, 15 Sep 2011 10:43:55 +0000 (10:43 +0000)]
New C/Py api utility function PyC_Err_Format_Prefix() which raises an error with the existing error as a suffix.

Use this to raise errors when assigning a string property fails even though the value to assign *is* a string.

Before:
  TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str

After:
  TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)

7 years agomove utf8 string.c functions into their own file, also add python tip for printing...
Campbell Barton [Thu, 15 Sep 2011 08:07:42 +0000 (08:07 +0000)]
move utf8 string.c functions into their own file, also add python tip for printing operators.

7 years agominor edits to ascii draw function, unused var warning.
Campbell Barton [Wed, 14 Sep 2011 02:45:44 +0000 (02:45 +0000)]
minor edits to ascii draw function, unused var warning.

7 years agomove ED_object_pose_armature --> object_pose_armature_get to so we dont get bad level...
Campbell Barton [Wed, 14 Sep 2011 01:48:55 +0000 (01:48 +0000)]
move ED_object_pose_armature --> object_pose_armature_get to so we dont get bad level calls in the weight paint branch.

7 years agoremoved nodes from CMake's BLENDER_LINK_LIBS, rewrote find-pcre using own template.
Campbell Barton [Wed, 14 Sep 2011 01:23:17 +0000 (01:23 +0000)]
removed nodes from CMake's BLENDER_LINK_LIBS, rewrote find-pcre using own template.

7 years ago- removed some duplicate library links from cmake (which were needed because of bad...
Campbell Barton [Wed, 14 Sep 2011 01:02:57 +0000 (01:02 +0000)]
- removed some duplicate library links from cmake (which were needed because of bad level calls)
- FindXML2 we had copied from another project was always running and not using cached value, rewrote based on template used for most of our other find modules which makes use of 'FindPackageHandleStandardArgs'
- mark statuc collada libs as advanced.

7 years agoresolve bad level calls from blenkenel/ into editors/ & remove editors from the inclu...
Campbell Barton [Wed, 14 Sep 2011 00:37:27 +0000 (00:37 +0000)]
resolve bad level calls from blenkenel/ into editors/ & remove editors from the include path from CMake & SCons.

* ED_curve_editnurbs --> curve_editnurbs
* ED_sculpt_modifiers_changed --> object_sculpt_modifiers_changed

7 years agofix compilation for MinGW by substituting qsort_r with qsort. What aversion do MinGW...
Antony Riakiotakis [Tue, 13 Sep 2011 19:51:58 +0000 (19:51 +0000)]
fix compilation for MinGW by substituting qsort_r with qsort. What aversion do MinGW guys have for including '_r' variants of functions anyway?
Warning: a clean build will be needed probably to account for recent merge changes, or link errors will occur.

7 years agoFix typo in own commit for raycast library
Sergey Sharybin [Tue, 13 Sep 2011 16:54:01 +0000 (16:54 +0000)]
Fix typo in own commit for raycast library

7 years agoEnable FFTW3 library for buildslaves
Sergey Sharybin [Tue, 13 Sep 2011 16:52:42 +0000 (16:52 +0000)]
Enable FFTW3 library for buildslaves

7 years agofix [#28635] Mirror Modifier - Clipping still active when modifier is disabled
Campbell Barton [Tue, 13 Sep 2011 05:00:54 +0000 (05:00 +0000)]
fix [#28635] Mirror Modifier - Clipping still active when modifier is disabled

7 years agoFixes #28599: Wrong re-assigning of layers in RenderLayer comp nodes when deleting...
Bastien Montagne [Mon, 12 Sep 2011 17:27:02 +0000 (17:27 +0000)]
Fixes #28599: Wrong re-assigning of layers in RenderLayer comp nodes when deleting a render layer.
Also added the check of comp nodetree of all scenes, as others might also use that scene in their compositing!

7 years agocorrect bad maximum value, for wile-loop node, outside the range of a short.
Campbell Barton [Mon, 12 Sep 2011 15:29:37 +0000 (15:29 +0000)]
correct bad maximum value, for wile-loop node, outside the range of a short.

7 years agofix for opencollada crash with r40164, missing NULL check.
Campbell Barton [Mon, 12 Sep 2011 13:59:23 +0000 (13:59 +0000)]
fix for opencollada crash with r40164, missing NULL check.

7 years agofix for error linking opencollada on linux.
Campbell Barton [Mon, 12 Sep 2011 13:58:13 +0000 (13:58 +0000)]
fix for error linking opencollada on linux.

7 years agoFix [#28614] Collada Exporter does not export Ambient term
Nathan Letwory [Mon, 12 Sep 2011 13:20:24 +0000 (13:20 +0000)]
Fix [#28614] Collada Exporter does not export Ambient term
reported by Steiner Bernhard

ma->ambX is calculated only on a render, so instead of relying on those values compute them manually.

7 years agouse vector size and const args where possible (no functional change)
Campbell Barton [Mon, 12 Sep 2011 13:00:24 +0000 (13:00 +0000)]
use vector size and const args where possible (no functional change)

7 years agoCode shuffle so function has only one exit point.
Nathan Letwory [Mon, 12 Sep 2011 10:57:41 +0000 (10:57 +0000)]
Code shuffle so function has only one exit point.

7 years agoFix for bug #28332: Smoke Simulation rendering artifacts.
Miika Hamalainen [Mon, 12 Sep 2011 09:55:04 +0000 (09:55 +0000)]
Fix for bug #28332: Smoke Simulation rendering artifacts.

Volume pre-caching altered shared data simultaneously in multiple threads, causing invalid scattering results when "Asymmetry" value was used. The view vector is now passed as a function argument.

7 years agoFix #28613: SEGFAULT: When setting Best-Quality on a Bump Map in GLSL viewport
Sergey Sharybin [Mon, 12 Sep 2011 09:47:28 +0000 (09:47 +0000)]
Fix #28613: SEGFAULT: When setting Best-Quality on a Bump Map in GLSL viewport

Problem was caused by CRLF line ending instead of LF line ending.
Re-generate pu_shader_material to use LF line ending and made gpu codegen
treat \r as space character.

7 years agofix for changing font sizes with recent utf8 speedup
Campbell Barton [Mon, 12 Sep 2011 09:12:34 +0000 (09:12 +0000)]
fix for changing font sizes with recent utf8 speedup

7 years agoFixed "bug" #28611: Subdiv value for icosphere should not be below 1.
Bastien Montagne [Mon, 12 Sep 2011 08:27:21 +0000 (08:27 +0000)]
Fixed "bug" #28611: Subdiv value for icosphere should not be below 1.

7 years agoRecast: attempt to fix compilation problem in Linux.
Benoit Bolsee [Mon, 12 Sep 2011 07:38:00 +0000 (07:38 +0000)]
Recast: attempt to fix compilation problem in Linux.

7 years ago- fix for mesh_get_mapped_verts_nors copying short normals to floats without scaling.
Campbell Barton [Mon, 12 Sep 2011 04:29:35 +0000 (04:29 +0000)]
- fix for mesh_get_mapped_verts_nors copying short normals to floats without scaling.
- BL_SkinDeformer also did this though for that case its not a problem because the normals are later accumulated anyway.

7 years agoreplace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some...
Campbell Barton [Mon, 12 Sep 2011 04:14:12 +0000 (04:14 +0000)]
replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some parts of the code are copying float -> short normals without scaling. fix coming next.

7 years agocleanup for object color theme (no functional changes), could set the opengl color...
Campbell Barton [Mon, 12 Sep 2011 01:43:20 +0000 (01:43 +0000)]
cleanup for object color theme (no functional changes), could set the opengl color 2-3 times per object.

7 years agoquiet -Wundef warnings for cmake/gcc/elbeem
Campbell Barton [Mon, 12 Sep 2011 00:55:27 +0000 (00:55 +0000)]
quiet -Wundef warnings for cmake/gcc/elbeem

7 years agofix for passing NULL to strstr() in visualkey_can_use()
Campbell Barton [Mon, 12 Sep 2011 00:13:49 +0000 (00:13 +0000)]
fix for passing NULL to strstr() in visualkey_can_use()

7 years agofix for ntreeGPUMaterialNodes(), using uninitialized exec pointer.
Campbell Barton [Mon, 12 Sep 2011 00:00:21 +0000 (00:00 +0000)]
fix for ntreeGPUMaterialNodes(), using uninitialized exec pointer.
also commented some set-but-unused variables.

7 years ago== Sequencer ==
Peter Schlaile [Sun, 11 Sep 2011 21:46:24 +0000 (21:46 +0000)]
== Sequencer ==

Fixed silly bug, that activated proxies at the wrong time.

7 years agopep8 edits
Campbell Barton [Sun, 11 Sep 2011 15:36:11 +0000 (15:36 +0000)]
pep8 edits

7 years agoFound other problems similar to bug #28619 in other primitive_add ops… Will continue...
Bastien Montagne [Sun, 11 Sep 2011 15:33:33 +0000 (15:33 +0000)]
Found other problems similar to bug #28619 in other primitive_add ops… Will continue to chek!

7 years agoFixed bug #28619: values of X/Y grid size were allowed to be below 3, when adding...
Bastien Montagne [Sun, 11 Sep 2011 15:26:46 +0000 (15:26 +0000)]
Fixed bug #28619: values of X/Y grid size were allowed to be below 3, when adding a grid primitive.

7 years agoFixes for Win+SCons and disable recastnavigationif game engine is disabled in SCons
Sergey Sharybin [Sun, 11 Sep 2011 15:17:54 +0000 (15:17 +0000)]
Fixes for Win+SCons and disable recastnavigationif game engine is disabled in SCons

7 years agoRecast: fix bad level calls, Recast compiled out if BGE not enabled. SCons updated...
Benoit Bolsee [Sun, 11 Sep 2011 14:13:04 +0000 (14:13 +0000)]
Recast: fix bad level calls, Recast compiled out if BGE not enabled. SCons updated but not tested.

7 years agofix for 'blender -E' crashing.
Campbell Barton [Sun, 11 Sep 2011 13:46:58 +0000 (13:46 +0000)]
fix for 'blender -E' crashing.

7 years agoAudio:
Joerg Mueller [Sun, 11 Sep 2011 12:24:11 +0000 (12:24 +0000)]
Audio:
* Fix for high quality upsampling which was wrong.
* Fix for doppler effects which were calculated wrong for scenes.
* Improved animation evaluation at the beginning and end of a scene.

7 years agomove maxseq define into DNA.
Campbell Barton [Sun, 11 Sep 2011 10:35:26 +0000 (10:35 +0000)]
move maxseq define into DNA.

7 years agospeedup for editmesh drawing.
Campbell Barton [Sun, 11 Sep 2011 10:23:26 +0000 (10:23 +0000)]
speedup for editmesh drawing.
- avoid needless context switching quad/tri, flat/smooth.
- dont call glNormal3vf() lighting is disabled.

gives ~2x speedup with a subdivided cube, but thats probably the best case, quad/tri smooth/flat mix will slow down a bit.

7 years agoGame Engine:
Thomas Dinges [Sun, 11 Sep 2011 10:00:43 +0000 (10:00 +0000)]
Game Engine:
Fixed some more abbreviations in the UI.

7 years agopartial fix for blenderplayer linking problems (decast retour)
Dalai Felinto [Sun, 11 Sep 2011 08:21:26 +0000 (08:21 +0000)]
partial fix for blenderplayer linking problems (decast retour)
This fix the problem of linking the extern components for the KX module.
The remaining linking issues are related to actual bad level access so the fix is a bit more complex.

Remaining linking issues (osx cmake gcc)
###########
Undefined symbols:
  "_buildNavMeshDataByDerivedMesh", referenced from:
      KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
      _applyModifier in libbf_modifiers.a(MOD_navmesh.cpp.o)
  "_polyIsConvex", referenced from:
      _applyModifier in libbf_modifiers.a(MOD_navmesh.cpp.o)
  "_polyNumVerts", referenced from:
      KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
  "_polyFindVertex", referenced from:
      KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
      KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
      KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
############

7 years agospeedup font drawing:
Campbell Barton [Sun, 11 Sep 2011 08:12:16 +0000 (08:12 +0000)]
speedup font drawing:
 for ascii characters in a utf8 string use glyph_ascii_table lookup rather than call blf_glyph_search(), otherwise fallback to blf_utf8_next() and blf_glyph_search().

7 years agofix for error in own commit r40108.
Campbell Barton [Sun, 11 Sep 2011 07:06:21 +0000 (07:06 +0000)]
fix for error in own commit r40108.

7 years agoreplace magic numbers for flags for uiSetRoundBox();
Campbell Barton [Sun, 11 Sep 2011 06:41:09 +0000 (06:41 +0000)]
replace magic numbers for flags for uiSetRoundBox();

7 years agobugfix: [bf-blender-Game Engine][28167] Restart game actuator don't get changed mater...
Dalai Felinto [Sun, 11 Sep 2011 05:54:07 +0000 (05:54 +0000)]
bugfix: [bf-blender-Game Engine][28167] Restart game actuator don't get changed material mode

http://projects.blender.org/tracker/?func=detail&aid=28167&group_id=9&atid=306
Game Actuator (restart or load a new file) will not keep some settings alive (as
we had in 2.49).

In 2.49 the solution used was to use Blender globals (G.fileflags) to get/set
those settings. That was causing the blender file to change if you change the
material mode from the game.

In 2.5 this never worked, and the implementation was buggy (it's relying in the
scene settings, which get reset ever time we restart/load a new file).

My idea for fixing this is to create a new struct (GlobalSettings) where we
store any setting to be preserver during the course of the game. This is
specially important for options that require the game to restart/load new file
(graphic ones). But it later can be expanded to support other things such as
audio settings (e.g. volume), ...
I'm also planning to expand it for stereo and dome settings, but I prefer to
first get this committed and then build a new patch on top of that.

I had some problems in finding a correct way for build/link the blenderplayer
changes, so although it's working I'm not sure this is the best code (e.g. I
couldn't make forward declaration to work in GPG_Application.h for the struct
GlobalSettings so I ended up including KX_KetsjiEngine.h)

[note: I talked with Brecht and he find this is an ok solution. He implemented
it originally so it's good to have his go. However I still think there must be a way to make forward declaration to work. I will see with other devs if there is a better solution]
[also I'm likely renaming glsl to flags later if there are more settings stored in the flags to be used. But for now we are only handling glsl flags]

7 years agouse vertex arrays for 3d view grid floor, reduce calls to glColor3ubv. clanup some...
Campbell Barton [Sun, 11 Sep 2011 05:50:44 +0000 (05:50 +0000)]
use vertex arrays for 3d view grid floor, reduce calls to glColor3ubv. clanup some unrelated odd formatting in draw_rotation_guide.

7 years agodraw grid lines in 1 loop rather then 2.
Campbell Barton [Sun, 11 Sep 2011 05:10:27 +0000 (05:10 +0000)]
draw grid lines in 1 loop rather then 2.

7 years agochange grid floor loop
Campbell Barton [Sun, 11 Sep 2011 04:56:32 +0000 (04:56 +0000)]
change grid floor loop
- split out axis drawing into its own loop (makes it more readable)
- left GRID_MIN_PX at 1.0 by mistake last commit.

7 years agosimple changes to grid drawing logic.
Campbell Barton [Sun, 11 Sep 2011 04:31:09 +0000 (04:31 +0000)]
simple changes to grid drawing logic.

- make ortho grid drawing use vertex arrays
- make perspective view floor drawing cache result of UI_ThemeColorShade so its not called on every line.
- make perspective view floor only loop once on each axis when the grid floor isnt being drawn (was looking over all grid lines for no reason).
- add UI_GetColorPtrShade3ubv() to replace UI_GetColorPtrBlendShade3ubv() when no blending is needed.

7 years agominor edits / cleanup - no functional changes.
Campbell Barton [Sun, 11 Sep 2011 02:50:01 +0000 (02:50 +0000)]
minor edits / cleanup - no functional changes.
- use 'const float *' and array size in some function declarations.
- replace macros for BLI_math functions INPF, VECCOPY, VECADD etc.
- remove unused VertRen.clip struct member.
- remove static squared_dist() from 2 files, replace with BLI_math function len_squared_v3v3().
- use vertex arrays for drawing clipping background in the 3D viewport.

7 years agocmake edits to navmesh so includes are not added unless the game engines enabled.
Campbell Barton [Sun, 11 Sep 2011 00:08:07 +0000 (00:08 +0000)]
cmake edits to navmesh so includes are not added unless the game engines enabled.

7 years agoadded section about editmode switching to gotchas
Campbell Barton [Sat, 10 Sep 2011 23:06:44 +0000 (23:06 +0000)]
added section about editmode switching to gotchas

7 years agoFix #28609: UV Sphere Operator Panel allow Segments and Ring to be manually set to 0
Sergey Sharybin [Sat, 10 Sep 2011 16:46:30 +0000 (16:46 +0000)]
Fix #28609: UV Sphere Operator Panel allow Segments and Ring to be manually set to 0

Set hard min for segments and rings to 3.
Lower values doesn't make real sense and can only confuse.

7 years agoFixed for navmesh on FreeBSD. Oatch by sambler, thanks!
Sergey Sharybin [Sat, 10 Sep 2011 14:55:14 +0000 (14:55 +0000)]
Fixed for navmesh on FreeBSD. Oatch by sambler, thanks!

7 years agoChange priority for editor util library. Gave linking errors here.
Sergey Sharybin [Sat, 10 Sep 2011 14:28:34 +0000 (14:28 +0000)]
Change priority for editor util library. Gave linking errors here.

7 years agospelling corrections from Philippe Casteleyn
Campbell Barton [Sat, 10 Sep 2011 14:28:13 +0000 (14:28 +0000)]
spelling corrections from Philippe Casteleyn

7 years agoAnother set of fixes for recats: osx uses different order of arguments for sort_r
Sergey Sharybin [Sat, 10 Sep 2011 14:12:15 +0000 (14:12 +0000)]
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.

7 years agouse vertex arrays for wireframe octahedral bone drawing.
Campbell Barton [Sat, 10 Sep 2011 12:07:16 +0000 (12:07 +0000)]
use vertex arrays for wireframe octahedral bone drawing.

7 years agofix for building with collada and some other warnings
Campbell Barton [Sat, 10 Sep 2011 09:38:38 +0000 (09:38 +0000)]
fix for building with collada and some other warnings

7 years agoNavigation Mesh Modifier:
Thomas Dinges [Sat, 10 Sep 2011 09:21:46 +0000 (09:21 +0000)]
Navigation Mesh Modifier:
* Fix scons define for operator append
* Don't use abbreviations in the UI.

7 years agoMSVC build fix by MiikaH for NAVMESH. Thanks! :)
Thomas Dinges [Sat, 10 Sep 2011 09:06:42 +0000 (09:06 +0000)]
MSVC build fix by MiikaH for NAVMESH. Thanks! :)

7 years agoRecast & Detour UI:
Thomas Dinges [Sat, 10 Sep 2011 08:43:11 +0000 (08:43 +0000)]
Recast & Detour UI:
* Panels showed up even if in non game engine mode, polls were missing!

7 years agoSmall comment change, when built without Fluids.
Thomas Dinges [Sat, 10 Sep 2011 08:29:50 +0000 (08:29 +0000)]
Small comment change, when built without Fluids.

7 years agoCompile fix for scons:
Thomas Dinges [Sat, 10 Sep 2011 08:25:03 +0000 (08:25 +0000)]
Compile fix for scons:
* Don't compile with navmesh_conversion.cpp if Game engine is disabled.

7 years agoFixing bugs after Recast & Detour branch merge
Bastien Montagne [Sat, 10 Sep 2011 07:58:42 +0000 (07:58 +0000)]
Fixing bugs after Recast & Detour branch merge
*The eModifierType_NavMesh enum define was added before WeightVG ones, in ModifierType, breaking file load for WeightVG modifier. New modifier should always be added at the end of that enum!

7 years agoNAVMESH Modifier was not alphabetical correct in the modifier list, as the others.
Thomas Dinges [Sat, 10 Sep 2011 07:14:35 +0000 (07:14 +0000)]
NAVMESH Modifier was not alphabetical correct in the modifier list, as the others.

7 years agodisable navmesh feature when building without the game engine.
Campbell Barton [Sat, 10 Sep 2011 04:21:58 +0000 (04:21 +0000)]
disable navmesh feature when building without the game engine.

7 years agofixed linking with CMake
Campbell Barton [Sat, 10 Sep 2011 03:42:45 +0000 (03:42 +0000)]
fixed linking with CMake

7 years agorecast and detour patch now builds again with GCC
Campbell Barton [Sat, 10 Sep 2011 03:07:26 +0000 (03:07 +0000)]
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

7 years agofix own mistake in recent commit, was using glIndexPointer incorrectly.
Campbell Barton [Sat, 10 Sep 2011 01:39:21 +0000 (01:39 +0000)]
fix own mistake in recent commit, was using glIndexPointer incorrectly.

7 years agoFixing bugs after Recast & Detour branch merge!!
Thomas Dinges [Fri, 9 Sep 2011 22:47:26 +0000 (22:47 +0000)]
Fixing bugs after Recast & Detour branch merge!!
* The new NAVMESH Modifier did not show any buttons, console printed errors instead!
* Poll of "PHYSICS_PT_game_obstacles" panel caused errors as well, self instead of cls was used as argument.
* Check to show/hide buttons in "WORLD_PT_game_physics_obstacles" panel did not worked due to wrong ENUM identifier ('None' instead if 'NONE')
* Moved "SCENE_PT_navmesh" panel out of properties_scene.py into the properties_game.py where it belongs and renamed it. Also, don't use abreviations in Panel Headers (Navmesh > Navigaion Mesh)
* Code cleanup, removed unnescecary code.
* bpy.types.Panel > Panel

7 years agoSVN maintenance.
Guillermo S. Romero [Fri, 9 Sep 2011 22:02:12 +0000 (22:02 +0000)]
SVN maintenance.

7 years agoBGE: merge Recast & Detour branch (sock-2010-nicks).
Benoit Bolsee [Fri, 9 Sep 2011 21:28:56 +0000 (21:28 +0000)]
BGE: merge Recast & Detour branch (sock-2010-nicks).

Add navigation mesh capability to the BGE, both by logic bricks and python.
Add tools to creation navigation mesh in the creator:
- manualy
- automatically from existing mesh with "object.create_navmesh" operator
- automatically from existing mesh with "Navigation mesh" modifier
Editing navigation mesh is possible via special modifier edit mode.
Creation and modification of Navigation mesh is also possible at runtime in the BGE.

Documentation at http://wiki.blender.org/index.php/User:Nicks/Gsoc2010/Docs

Warning: No upgrade is provided for blend files created under the branch.
         If you load a blend with navigation data created with a branch
         build, it will likely crash blender or behave incorrectly.

7 years agosvn merge -r 40061:40078 https://svn.blender.org/svnroot/bf-blender/trunk/blender soc-2010-nicks
Benoit Bolsee [Fri, 9 Sep 2011 19:30:33 +0000 (19:30 +0000)]
svn merge -r 40061:40078 https://svn.blender.org/svnroot/bf-blender/trunk/blender

7 years agouse opengl vertex arrays for the base widgets, their rounded corners, arrows and...
Campbell Barton [Fri, 9 Sep 2011 14:44:36 +0000 (14:44 +0000)]
use opengl vertex arrays for the base widgets, their rounded corners, arrows and emboss. (note, this is from OpenGL 1.1 from 1992, nothing fancy), gives moderate speedup on my system when showing many buttons (10% - 15%).

7 years ago[#28595] Select similar edges by face angles ignores z component of normal angles
Sergey Sharybin [Fri, 9 Sep 2011 14:04:33 +0000 (14:04 +0000)]
[#28595] Select similar edges by face angles ignores z component of normal angles

Patch provided by Andrew Wiggin (ender79). Thanks!

7 years agowarning fixes
Campbell Barton [Fri, 9 Sep 2011 13:46:47 +0000 (13:46 +0000)]
warning fixes

7 years agoFix #28590: Sculpt Overlay Texture in Viewport Glitched and Wrong icon for Overlay...
Sergey Sharybin [Fri, 9 Sep 2011 13:42:22 +0000 (13:42 +0000)]
Fix #28590: Sculpt Overlay Texture in Viewport Glitched and Wrong icon for Overlay Option?

Use clamp to border for fixed textures.

7 years agoerror (case insensitive search replace)
Campbell Barton [Fri, 9 Sep 2011 13:37:17 +0000 (13:37 +0000)]
error (case insensitive search replace)

7 years agoreplace magic numbers with defines to make the interface source more readable.
Campbell Barton [Fri, 9 Sep 2011 13:10:18 +0000 (13:10 +0000)]
replace magic numbers with defines to make the interface source more readable.
only functional change is the uiWidgetBase struct stored up to 64 verts, changed this to 36 since thats the most that is used atm, added assert if this ever changes.

7 years agoHotkey tweaks: Start/End frame jumping back to Shift-Left/Right
Joshua Leung [Fri, 9 Sep 2011 13:02:15 +0000 (13:02 +0000)]
Hotkey tweaks: Start/End frame jumping back to Shift-Left/Right

I'd moved them to Ctrl-Shift-Left/Right having thought that they were
for some reason now conflicting with some other hotkeys. Apparently
not.

7 years agoPatch [#23443] Change outliner filter into search
Joshua Leung [Fri, 9 Sep 2011 12:46:07 +0000 (12:46 +0000)]
Patch [#23443] Change outliner filter into search
Shane Ambler (sambler) for this 12-month vintage!

From description:
One thing with the outliner filter box is it only filters items that
are currently visible. To find what you want you need to manually
expand a few levels so that what you want to find is visible.

This small patch expands items when filtering is done - effectively
turning it into a search.

Currently this does not alter the datablocks view as expanding all
entries takes waaaay tooooo long.
I prevent the expansion of RNA entries for userprefs which prevents
infinite recursion but the datablocks list is just too big for this
approach. I think it would need a custom outliner_build_tree for a
full search.

7 years agoforgot to resolve one conflict in previous merge
Benoit Bolsee [Fri, 9 Sep 2011 12:37:56 +0000 (12:37 +0000)]
forgot to resolve one conflict in previous merge

7 years agoApply small patch by Shane Ambler:
Nathan Letwory [Fri, 9 Sep 2011 12:23:45 +0000 (12:23 +0000)]
Apply small patch by Shane Ambler:

* inline of math funcs for Apple PPC
* eltopo big/little endian ifdef