Campbell Barton [Sat, 17 Sep 2011 13:15:38 +0000 (13:15 +0000)]
svn merge -r40279:40295 ^/trunk/blender
Brecht Van Lommel [Sat, 17 Sep 2011 13:03:42 +0000 (13:03 +0000)]
Nodes: fix nodes in groups not getting socket templates verified, and reserve
some socket flags for cycles to avoid conflicts.
Howard Trickey [Sat, 17 Sep 2011 12:31:22 +0000 (12:31 +0000)]
Fix knife midpoint snapping when previous point was a vertex; also reduced snap radius to approximately match crosshairs.
Campbell Barton [Sat, 17 Sep 2011 12:25:51 +0000 (12:25 +0000)]
fix for building after merge
Campbell Barton [Sat, 17 Sep 2011 10:45:20 +0000 (10:45 +0000)]
Speedup for font drawing, every letter was character was calling:
glGetIntegerv(GL_TEXTURE_2D_BINDING_EXT, &cur_tex);
... with shadow enabled glGetFloatv(GL_CURRENT_COLOR, color) was called twice per character as well.
Now only call glGetFloatv(GL_CURRENT_COLOR, ...) once per string and only when drawing with shadow or blur, texture bind is stored in the font.
Gives 8% overall FPS speedup when displaying heavy UI in my test.
Bastien Montagne [Sat, 17 Sep 2011 10:44:16 +0000 (10:44 +0000)]
Minor: fixing other UI typos.
Campbell Barton [Sat, 17 Sep 2011 09:53:38 +0000 (09:53 +0000)]
remove redundant NULL check
Campbell Barton [Sat, 17 Sep 2011 09:43:51 +0000 (09:43 +0000)]
use macros RAD2DEG & DEG2RAD rather then multiplying by 180.0/M_PI or M_PI/180.0
Bastien Montagne [Sat, 17 Sep 2011 09:15:30 +0000 (09:15 +0000)]
Minor: fixing an UI typo.
Campbell Barton [Sat, 17 Sep 2011 08:14:43 +0000 (08:14 +0000)]
use const and array size in function definitions, no functional change.
Campbell Barton [Sat, 17 Sep 2011 07:28:19 +0000 (07:28 +0000)]
correction to recent commit, wouldnt have given any troubles but was assigning the 4th component of a float[3].
Campbell Barton [Sat, 17 Sep 2011 07:14:39 +0000 (07:14 +0000)]
more mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead get all colors at the start and index them when drawing curves in editmode.
also remove redundant NULL check.
Campbell Barton [Sat, 17 Sep 2011 06:18:35 +0000 (06:18 +0000)]
micro optimization for circle drawing.
- use vertex array for drawcircball()
- add circball_array_fill() and call from drawcircball().
- for object center's rather than drawing 2 circles, create the array and reuse it.
Campbell Barton [Sat, 17 Sep 2011 05:35:55 +0000 (05:35 +0000)]
use less confusing array syntax for circle drawing, no functional changes.
Campbell Barton [Sat, 17 Sep 2011 04:59:14 +0000 (04:59 +0000)]
svn merge -r40166:40279 ^/trunk/blender
Mitchell Stokes [Fri, 16 Sep 2011 20:08:05 +0000 (20:08 +0000)]
BGE Animations: Fixing some refcount issues with KX_Scene::m_animatedlist (fixes m_animatedlist crashes) and some whitespace issues with KX_GameObject::GetActionManager().
Dalai Felinto [Fri, 16 Sep 2011 18:23:57 +0000 (18:23 +0000)]
BGE fix: Font Objects not showing up in the dome mode
geez, who coded the font object? or even worse, who did the dome code?
Don't coders talk? tsc tsc ...
Now seriously, KX_KetsjiEngine::RenderFonts() could be moved to inside the KX_Scene class. It probably should (so I could call it from inside KX_Dome::RenderDomeFrame()). Not critical, so not changing it for now.
Guillermo S. Romero [Fri, 16 Sep 2011 17:18:12 +0000 (17:18 +0000)]
SVN maintenance.
Bastien Montagne [Fri, 16 Sep 2011 16:05:45 +0000 (16:05 +0000)]
WeightVG: added WeightVG icon for outliner (don’t know when that where lost...).
Andrew Wiggin [Fri, 16 Sep 2011 14:28:23 +0000 (14:28 +0000)]
A couple of trivial perf improvements:
-BMEMSET macro should cache the size of the memory block instead of reading each iteration
-Avoid tesselating the backup copy of the mesh used to restore after an error (unless there is actually an error)
Campbell Barton [Fri, 16 Sep 2011 14:02:44 +0000 (14:02 +0000)]
- fix for memory leak in findFreeNavPolyIndex()
- also correct own script for running cppcheck.
Sergey Sharybin [Fri, 16 Sep 2011 10:03:08 +0000 (10:03 +0000)]
Fix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
Initially problem was caused by updated version of mingw-runtime which
changed behavior of snprintf and vsnprintf so %lf isn't anymore valid
for doubles.
According to manpages, %f is a correct format for snprintf for doubles.
Campbell Barton [Fri, 16 Sep 2011 09:02:31 +0000 (09:02 +0000)]
correction for my fix for [#28668], would crash when there were no editbones.
Campbell Barton [Fri, 16 Sep 2011 08:20:21 +0000 (08:20 +0000)]
use replace 0 with NULL for pointers, set some functions static
also fixed own errors in recent static check commit.
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
Campbell Barton [Fri, 16 Sep 2011 06:56:50 +0000 (06:56 +0000)]
replace macros with math lib functions
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.
Andrew Wiggin [Fri, 16 Sep 2011 05:21:24 +0000 (05:21 +0000)]
Make split tool use splitop (instead of dupe & del). Fix split op output.
Andrew Wiggin [Fri, 16 Sep 2011 04:28:38 +0000 (04:28 +0000)]
Fix for face-snapping to faces in the same mesh
Andrew Wiggin [Fri, 16 Sep 2011 04:14:46 +0000 (04:14 +0000)]
Fix mirror modifier for mirroring relative to another object
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)
Campbell Barton [Fri, 16 Sep 2011 02:08:00 +0000 (02:08 +0000)]
fix [#28668] Crashes entering edit mode on Armature
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...
Guillermo S. Romero [Thu, 15 Sep 2011 16:37:36 +0000 (16:37 +0000)]
SVN maintenance.
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
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!).
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).
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!
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.
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'
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.
Sergey Sharybin [Thu, 15 Sep 2011 11:37:42 +0000 (11:37 +0000)]
Update build rules to deal with new gettext libraries.
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.
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)
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.
Campbell Barton [Wed, 14 Sep 2011 02:45:44 +0000 (02:45 +0000)]
minor edits to ascii draw function, unused var warning.
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.
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.
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.
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
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.
Sergey Sharybin [Tue, 13 Sep 2011 16:54:01 +0000 (16:54 +0000)]
Fix typo in own commit for raycast library
Sergey Sharybin [Tue, 13 Sep 2011 16:52:42 +0000 (16:52 +0000)]
Enable FFTW3 library for buildslaves
Andrew Wiggin [Tue, 13 Sep 2011 13:41:20 +0000 (13:41 +0000)]
Submit of patch [#28568] BMesh: make active element highlights work
Campbell Barton [Tue, 13 Sep 2011 12:46:54 +0000 (12:46 +0000)]
fix for [#28581] Rip Tool Gives Strange/Bad Results
Note that this just comments a check which I couldnt see any reason for, both edge split modifier and rip tool seem to work ok without it. so left the code in with an '#if 0'
Campbell Barton [Tue, 13 Sep 2011 12:42:04 +0000 (12:42 +0000)]
some edits to make the split code easier to read, replace "j ? (i+1) % f->len : i" with a variable since its re-used so much, no functional change.
Campbell Barton [Tue, 13 Sep 2011 09:43:57 +0000 (09:43 +0000)]
picky formatting edits - no functional changes.
Campbell Barton [Tue, 13 Sep 2011 05:00:54 +0000 (05:00 +0000)]
fix [#28635] Mirror Modifier - Clipping still active when modifier is disabled
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!
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.
Campbell Barton [Mon, 12 Sep 2011 15:13:31 +0000 (15:13 +0000)]
fix for typo in bevel code.
Campbell Barton [Mon, 12 Sep 2011 15:10:59 +0000 (15:10 +0000)]
remove redundant casts
Campbell Barton [Mon, 12 Sep 2011 14:28:21 +0000 (14:28 +0000)]
svn merge -rr40148:40166 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Mon, 12 Sep 2011 13:59:23 +0000 (13:59 +0000)]
fix for opencollada crash with r40164, missing NULL check.
Campbell Barton [Mon, 12 Sep 2011 13:58:13 +0000 (13:58 +0000)]
fix for error linking opencollada on linux.
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.
Campbell Barton [Mon, 12 Sep 2011 13:00:24 +0000 (13:00 +0000)]
use vector size and const args where possible (no functional change)
Nathan Letwory [Mon, 12 Sep 2011 10:57:41 +0000 (10:57 +0000)]
Code shuffle so function has only one exit point.
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.
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.
Campbell Barton [Mon, 12 Sep 2011 09:12:34 +0000 (09:12 +0000)]
fix for changing font sizes with recent utf8 speedup
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.
Benoit Bolsee [Mon, 12 Sep 2011 07:38:00 +0000 (07:38 +0000)]
Recast: attempt to fix compilation problem in Linux.
Campbell Barton [Mon, 12 Sep 2011 05:51:35 +0000 (05:51 +0000)]
replace VECCOPY with copy_v3_v3
Campbell Barton [Mon, 12 Sep 2011 05:51:04 +0000 (05:51 +0000)]
replace BLI_arrays with simple malloc'd arrays since the size is known. add asserts to ensure the size is correct.
Campbell Barton [Mon, 12 Sep 2011 05:24:45 +0000 (05:24 +0000)]
use BM_Make_Vert example argument rather then calling inline, was also copying vertex normals twice in quite a few places.
Campbell Barton [Mon, 12 Sep 2011 05:21:47 +0000 (05:21 +0000)]
fix for error copying normals in CDDM_To_BMesh, was copying short -> float with no conversion.
Campbell Barton [Mon, 12 Sep 2011 05:01:39 +0000 (05:01 +0000)]
set some function args to const, no functional change.
Campbell Barton [Mon, 12 Sep 2011 04:57:20 +0000 (04:57 +0000)]
svn merge -r40140:r40148 https://svn.blender.org/svnroot/bf-blender/trunk/blender
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.
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.
Campbell Barton [Mon, 12 Sep 2011 02:44:17 +0000 (02:44 +0000)]
fix memory leak in array modifier not freeing editmesh, also use better names for allocs.
Campbell Barton [Mon, 12 Sep 2011 02:36:14 +0000 (02:36 +0000)]
fix [#28587] Array modifier draws an extra object
patch [#28586] from Andrew Wiggin (ender79)
Campbell Barton [Mon, 12 Sep 2011 02:23:30 +0000 (02:23 +0000)]
revert own commit r40051, mesh and object pointers are needed for undo, this commit caused bug [#28625] Separate crash bug.
also added a safety check for the crash, even though reverting fixes.
bmesh_to_mesh_exec() could set me->mface array to NULL but leave me->totface when notellelation=1, which is likely to give trouble elsewhere.
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.
Campbell Barton [Mon, 12 Sep 2011 00:55:27 +0000 (00:55 +0000)]
quiet -Wundef warnings for cmake/gcc/elbeem
Campbell Barton [Mon, 12 Sep 2011 00:38:57 +0000 (00:38 +0000)]
svn merge -r40124:40140 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Mon, 12 Sep 2011 00:13:49 +0000 (00:13 +0000)]
fix for passing NULL to strstr() in visualkey_can_use()
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.
Peter Schlaile [Sun, 11 Sep 2011 21:46:24 +0000 (21:46 +0000)]
== Sequencer ==
Fixed silly bug, that activated proxies at the wrong time.
Andrew Wiggin [Sun, 11 Sep 2011 16:41:03 +0000 (16:41 +0000)]
Fix for array init in BM_Point_In_Face
Campbell Barton [Sun, 11 Sep 2011 15:36:11 +0000 (15:36 +0000)]
pep8 edits
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!
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.
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
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.
Campbell Barton [Sun, 11 Sep 2011 13:46:58 +0000 (13:46 +0000)]
fix for 'blender -E' crashing.
Campbell Barton [Sun, 11 Sep 2011 13:23:30 +0000 (13:23 +0000)]
svn merge -r40117:40124 https://svn.blender.org/svnroot/bf-blender/trunk/blender
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.
Campbell Barton [Sun, 11 Sep 2011 10:35:26 +0000 (10:35 +0000)]
move maxseq define into DNA.