Commit Graph

50285 Commits

Author SHA1 Message Date
Campbell Barton
48013e8a9c more corrections to valgrind hinting. 2013-10-05 04:59:43 +00:00
Campbell Barton
2621d77f39 use valgrind hints for memarena for better debugging info when using valgrind.
also quiet a false positive in BLI_mempool_free().
2013-10-05 04:38:08 +00:00
Campbell Barton
7a9bc838de pressing enter over a file-text button is ignored (so enter in the file selector works again). 2013-10-04 18:34:28 +00:00
Brecht Van Lommel
4c5d6dcbaf Fix cycles hair render UI panel showing for particles that are not hair,
patch by Greg Zaal.
2013-10-04 18:04:29 +00:00
Bastien Montagne
b0c36617c6 Remove prints from own r60549, sorry for the noise. 2013-10-04 17:49:26 +00:00
Campbell Barton
0b1cf4c2ea code cleanup: warnings and minor edits. 2013-10-04 17:47:58 +00:00
Campbell Barton
5dc9db3533 fix for lasso failing/glitches on overlapping lines, replace scanfill with 2d pixel filling for drawing and selection. 2013-10-04 15:02:05 +00:00
Brecht Van Lommel
6737a04061 Attempt to fix #36935: disable SSE optimizations on 32 bit windows too. Something
strange is going on here, but I don't think it can be fixed before the release,
if it is worth at all spending time on this.
2013-10-04 14:47:37 +00:00
Bastien Montagne
d1827ff5d7 Fix obvious bug in particle code (copying normal into nor when in if(ornor) block...), though probably harmless in current code... 2013-10-04 14:28:32 +00:00
Brecht Van Lommel
cdb8736f83 Fix #36930: dynamic topology sculpting with masks gave bad results:
* The mask was not subdivided properly on splitting edges, which gave interesting
  but definitely wrong fractal-like borders around masks.

* Edge splitting was only done where the mask was < 50%, with the reasoning that
  you can't do a 50% topology update. But this gives an ugly border in the mesh.
  The mask should already make the brush move the vertices only 50%, which means
  that topology updates will also happen less frequent, that should be enough.
2013-10-04 13:40:21 +00:00
Brecht Van Lommel
8cdeba8d67 Fix #36948: blender internal viewport render crashes holding shift+Z pressed
to quickly toggle it on/off.

Problem is accessing freed data, now the job is ended immediately. Fix based
on patch from Sergey and investigation from Bastien.
2013-10-04 12:30:00 +00:00
Sergey Sharybin
865fe764dc Code cleanup: remove unused function 2013-10-04 12:22:54 +00:00
Bastien Montagne
1dc6d8ece1 Fix related to [#36926] 'scale' Node doesn't work properly.
Scene/Render "spaces" are actually absolute values, they do not use the input X/Y scale factors, hide them in this case.

Thanks to Lukas for review and improvement!
2013-10-04 12:11:10 +00:00
Campbell Barton
ec4a7fcad1 fix for lasso selection (in non-zbuf mode) when the line intersected its self.
isect_point_poly_v2() - add argument to check overlapping areas.
2013-10-04 10:48:24 +00:00
Sergey Sharybin
9a6a9c4f0c Changing dither value will now invalidate cached display buffer 2013-10-04 10:07:32 +00:00
Lukas Toenne
e1a34f22d7 Fix #36939, Objects with nodes appear in gray in viewport, using Solid shade, and the Blender Engine (or Game Engine).
The "active ID node" concept has become slightly more complex with pynodes. To find the active material or other ID links in a node tree recursively requires a hash key based on the "parent" tree of the
current node group. To avoid returning NULL in case this key is not yet initialized (i.e. ID node has not been activated yet), just accept 0 key as well for the base node tree.
2013-10-04 08:27:54 +00:00
Campbell Barton
ac606a7047 fix [#36947] "Edge Slide" bugs when "Even" is on
was doing a linear interpolation between points on either side instead of interpolating along the edges.
2013-10-04 05:53:02 +00:00
Campbell Barton
f9afdac2a3 fix [#36942] unfreed memory on trackball widget use 2013-10-04 01:10:23 +00:00
Sergey Sharybin
9e00a48511 Typo in variable name from previous commit, sorry. 2013-10-03 16:39:30 +00:00
Campbell Barton
43217da6d9 set mempool debug in the game-engine-player too. also remove redundant mempool includes. 2013-10-03 16:34:00 +00:00
Sergej Reich
f372d14173 rigidbody: Flag bodies for validation when changing shape
This fixes a pretty old crash that occurs when changing the collision
shape to a mesh shape during simulation.

Thanks to Thomas Beck (plasmasolutions) for the report.

svn merge -r60310:60311 ^/branches/soc-2013-rigid_body_sim
2013-10-03 16:12:02 +00:00
Campbell Barton
51f7f82a42 fix crash in editmesh edge-dissolve, when 2 faces shared multiple edges, freed edges would be checked. 2013-10-03 15:29:08 +00:00
Campbell Barton
f5eb880358 freeing mempool elements now fills freed memory with --debug for debug builds. 2013-10-03 14:44:33 +00:00
Gaia Clary
c819fd4ee0 Changed some labels from Second Life to OpenSim 2013-10-03 14:24:54 +00:00
Campbell Barton
87fb70cad2 fix for crash dissolving faces, bmesh walkers were using freed mempool elements.
use a convention for freeing walker-states where freed-dangling pointers aren't left assigned to prevent errors like this happening in future.
2013-10-03 13:35:57 +00:00
Sergey Sharybin
94fdaa5d41 Fix crash starting game engine on linux
Issue was caused by bug in mesa #54080 which makes
glXQueryDrawable fail with GLXBadDrawable for any
request with direct context.

Worked around by temporary overriding X error handling
when getting old interval value and disablingintervals
extension if this query fails.

Also added check for glXSwapIntervalEXT which is
apparently NULL here with GLX_EXT_swap_control=1.
2013-10-03 13:15:53 +00:00
Campbell Barton
9b1be7ce93 add cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which sometimes only show up as bugs in very rare cases (because even though the element is freed, the chunk is still allocated). 2013-10-03 12:22:44 +00:00
Campbell Barton
6b2e563924 yet another instance dissolve deletes verts it loops over. 2013-10-03 10:50:03 +00:00
Campbell Barton
6d1dba7c37 overlapping faces made join-triangles fail, check for this case and silently ignore them. 2013-10-03 10:29:53 +00:00
Campbell Barton
253e9fb041 addition to r60523 missed using BM_ITER_MESH_MUTABLE in one place. 2013-10-03 08:02:32 +00:00
Campbell Barton
5b5bc63396 fix [#36923] Merge / Delete vertices crashes for some meshes
add BM_ITER_MESH_MUTABLE which steps before entering the for() loop body and prevents the assert from complaining about removing mesh data while iterating as well as the crash.

this was done in quite a few areas, more may turn up.
2013-10-03 07:06:56 +00:00
Campbell Barton
4cb4dc8432 remove assert recently added to EDBM_backbuf_check and explain odd logic. 2013-10-03 07:02:52 +00:00
Campbell Barton
f3e41046fe fix bug in ED_vgroup_subset_from_select_type, setting negative index in boolean array.
also was freeing NULL pointer in vgroup_blend_subset()
2013-10-03 07:01:32 +00:00
Campbell Barton
962c183471 add debug mode assert if mesh-data is removed while iterating over it. (can crash). 2013-10-03 06:12:44 +00:00
Campbell Barton
91e020eea9 fix [#36924] Calling .define(...) on Macro subclass crashes Blender, if subclass wasn't registered 2013-10-03 05:27:39 +00:00
Campbell Barton
5568b63087 console: shift pad-enter now clears the line too. 2013-10-03 04:31:41 +00:00
Campbell Barton
58fe3435b4 adjustments to sculpt cache scaling code, (float/double promotion) 2013-10-03 03:05:41 +00:00
Antony Riakiotakis
6ff35258c0 real fix for #36695, scale brush stroke with maximum scale component,
except layer brush where the previous algorithm is used.
2013-10-02 22:46:26 +00:00
Antony Riakiotakis
98ee7fdd9a Fix an own regression introduced in the dyntopo cleanup commits. Do not
remove a vertex from the pbvh if the only face it was part of was
removed from the pbvh. This should work but no time to investigate now
properly, and better have a solid release. The problem could be seen
when sculpting to open meshes. Some vertices and faces on the boundaries
would become stuck and unresponsive.
2013-10-02 22:18:23 +00:00
Antony Riakiotakis
8dcbc1060b Revert 60358, it made irregularly scaled objects behave incorrectly, checking out different approach here. 2013-10-02 22:18:14 +00:00
Jens Verwiebe
be20171f39 OSX/GHOST: fix own issue in 60510, should now (hopefully) cover all multiple window combinations 2013-10-02 19:54:24 +00:00
Brecht Van Lommel
e308c2f166 Fix #36316: dots in cycles render on certain CPUs with 32 bit linux builds.
There is some sort of problem with the SSE2 code path, but I couldn't find
the cause, maybe a compiler bug due to the large amount of inlining? For
now I've disabled SSE2 optimizatons in 32 bit GCC builds.
2013-10-02 19:00:16 +00:00
Jens Verwiebe
8686f9fe03 OSX/GHOST: refine #60409 and better take multiple windows into account 2013-10-02 18:49:32 +00:00
Brecht Van Lommel
a47e6810a2 Fixes for cycles Mapping and Vector Transform node:
* Keep the Mapping node default type as Point for now, instead of Texture. The
  latter is a better default, but this is breaking API compatibility and it's
  too close to release to expect addons to be fixed in time.

* Vector Transform and Mapping nodes had properties with name "type" to set the
  type of vector, but this conflicts with the node type property, so renamed to
  vector_type now.
2013-10-02 17:02:59 +00:00
Campbell Barton
ba01e5e3eb fix [#36919] Cannot delete keyframe of animated simulation parameter if simulation has been disabled 2013-10-02 16:37:47 +00:00
Campbell Barton
592443816d re-shuffle ifdef for osx to make it more clear 2013-10-02 16:13:24 +00:00
Jens Verwiebe
4bc998d0b3 OSX: readd ctrl-a for 'select all' in text(-boxes) against my own conviction for now - really to be discussed 2013-10-02 16:09:09 +00:00
Brecht Van Lommel
cbb783f1d6 Fix cycles OpenCL compile error on AMD, and fix assert in debug builds. 2013-10-02 14:41:04 +00:00
Joshua Leung
8e70db78f4 Bugfix: All actions created when keyframing now have their "id-root" set appropriately
This means that it will no longer be possible to accidentally load a nodetree action in
the Action Editor (object-level actions only), resulting in F-Curves getting 
invalidated/disabled.
2013-10-02 12:14:50 +00:00
Sergey Sharybin
724b015da2 libmv: fix matrix address being printed instead of actual values 2013-10-02 10:18:43 +00:00