Commit Graph

42947 Commits

Author SHA1 Message Date
Sergey Sharybin
910f4df45d Fix race condition between tracking thread and tracks map sync
This might have been a reason of bug T38281.
2014-02-13 18:31:02 +06:00
Sergey Sharybin
83617d24d5 Rework carve integration into boolean modifier
Goal of this commit is to support NGons for boolean modifier
(currently mesh is being tessellated before performing boolean
operation) and also solve the limitation of loosing edge custom
data layers after boolean operation is performed.

Main idea is to make it so boolean modifier uses Carve library
directly via it's C-API, avoiding BSP intermediate level which
was doubling amount of memory needed for the operation and which
also used quite reasonable amount of overhead time.

Perhaps memory usage and CPU usage are the same after all the
features are implemented but we've got support now:

- ORIGINDEX for all the geometry
- Interpolation of edge custom data (seams, crease)
- NGons support

Triangulation rule is changed now as well, so now non-flat
polygons are not being merged back after Carve work. This is
so because it's not so trivial to support for NGons and
having different behavior for quads and NGons is even more
creepy.

Reviewers: lukastoenne, campbellbarton

Differential Revision: https://developer.blender.org/D274
2014-02-13 17:16:53 +06:00
Lukas Tönne
51efa8a1f5 Fix T38529, Blur node size 0 doesn't work.
The blur operations were clamping the filter size to 1, which prevents
no-op blur nodes. Further any value < 1 would also be ignored and in
many combinations the filter scale setting ("Size") would only work in
integer steps.

Now most blur settings will work with smooth Size value scaling as well,
meaning you can choose a reasonably large filter size (e.g. 10) and then
use the Size factor to scale the actual blur radius smoothly.

Note that non-integer filter sizes also depend on the filter type
selected in the Blur node, e.g. "Flat" filtering will still ignore
smooth filter sizes. Gaussian filters work best for this purpose.
2014-02-13 11:52:22 +01:00
Campbell Barton
ae8327dbf3 Mask: add option to detect self intersections 2014-02-13 19:12:28 +11:00
Campbell Barton
c85e66e7fe Scanfill: add user-flags for edges and verts, useful elsewhere. 2014-02-13 16:46:51 +11:00
Campbell Barton
fcb06097a5 Scanfill: name flags better and comment unused SF_EDGE_BOUNDARY flag. 2014-02-13 14:13:42 +11:00
Campbell Barton
3fe036ad5f ListBase: add attributes to api functions 2014-02-13 13:21:16 +11:00
Campbell Barton
f27acb5b56 ListBase: add BLI_sortlist_r api function, remove check for NULL callback 2014-02-13 13:21:16 +11:00
Tamito Kajiyama
fdcdd5e52e Freestyle: Follow-up fix for the chaining operation bug in the previous commit.
Many thanks to flokkievids for identifying the inconsistency.
2014-02-13 09:56:56 +09:00
Campbell Barton
108ad34429 Mask: option not to treat overlapping curves as holes 2014-02-13 11:48:46 +11:00
Campbell Barton
6ee9d1b69d error in recent commit 2014-02-13 10:13:33 +11:00
Campbell Barton
5e255f6b8f correct error in recent menu update for render slots, missing callback 2014-02-13 10:00:52 +11:00
Campbell Barton
b61c6e0f4f UI: remove unused freestr 2014-02-13 09:49:00 +11:00
Campbell Barton
4c21e2b382 UI: split ui_popup_menu_memory into get/set functions and store as uint 2014-02-13 09:37:28 +11:00
Campbell Barton
d4c87f2f79 Code cleanup: remove unused button aspect 2014-02-13 09:37:27 +11:00
Campbell Barton
9cc380e026 Fix own error in recent commit with red-alert flag becoming stale 2014-02-13 09:12:47 +11:00
Campbell Barton
aea00c7a81 Code cleanup: style 2014-02-13 08:52:12 +11:00
Campbell Barton
a397009181 Fix T38541: sys.exit fails when blender is built as a py-module 2014-02-13 06:58:06 +11:00
Bastien Montagne
70905a6e02 Fix Editderivedmeshes vertices normals computation.
Those derived meshes (used in Edit mode) were using simple sum of neighbor poly normals to get vertex normals,
while everywhere else in Blender we use weighted sum of such poly normals.

Patch: D311

Reviewed and enhanced by Campbell, thanks!
2014-02-12 20:48:09 +01:00
Campbell Barton
f9a60ecacd defaults: disable twoside for startup.blend 2014-02-13 04:53:26 +11:00
Bastien Montagne
13875564a9 Grr, another UI messages fix, forgot this one! 2014-02-12 17:55:47 +01:00
Dalai Felinto
9388061738 Add header info for the Fly Navigation operator 2014-02-12 14:07:43 -02:00
Brecht Van Lommel
f49e89fa37 Fix T38525: missing update when running bpy.ops.transform.* from the console. 2014-02-12 17:01:53 +01:00
Bastien Montagne
2be654b2ff Usual UI messages fixes... 2014-02-12 16:23:19 +01:00
Dalai Felinto
786ff5e9c4 Add header info for the Walk Navigation operator 2014-02-12 12:49:32 -02:00
Thomas Dinges
78e137efda Motion Tracking: Grammar fixes. 2014-02-12 15:32:26 +01:00
Brecht Van Lommel
efc6735a8b Fix T38610: lattice U/V/W should not be animatable, is not supported. 2014-02-12 14:50:48 +01:00
Campbell Barton
f674e93375 Code cleanup: ndof view3d operators use of ViewOpsData 2014-02-12 21:05:25 +11:00
Campbell Barton
dff15175a9 View3d: fix for ndof with quadview+box, missing sync.
also de-duplicate 3x pan-functions.
2014-02-12 21:05:25 +11:00
Campbell Barton
be3a029d4c NDOF: print events when debugging is enabled 2014-02-12 21:05:25 +11:00
Campbell Barton
bc41d255cb NDOF: minor color picker improvements
- swap Z/Y axis so Z changes hue and X/Y change location.
  this way you can use ndof like a joystick and Z rotation like a dial
  for the hue.

- change sensitivity when shift is held to be 1/5th
2014-02-12 21:05:24 +11:00
Campbell Barton
e2089e1406 NDOF: fix for negative colors and flickering hue when picking with HSVCUBE 2014-02-12 21:05:24 +11:00
Campbell Barton
7bc577e9f7 View3d Walk: enable rotation for ndof by default 2014-02-12 21:05:24 +11:00
Campbell Barton
bd89528a5e Code cleanup: replace WM_OT_ndof_sensitivity_change -> WM_OT_context_scale_float
also increase maximum sensitivity
2014-02-12 21:05:24 +11:00
Tamito Kajiyama
054094f582 Freestyle: Fix for chaining operators not concatenating edges with Freestyle edge marks and at material boundaries.
Problem report by Postoman on the BlenderArtists.org Freestyle thread, thanks a lot!
2014-02-12 18:17:21 +09:00
Sergey Sharybin
2dd2bcf2de Fix/workarond for scenes rendered for sequencer preview
This is really a workaround which brings back direct display
list creation from drawing code. This is rather nasty to do
but proper solution would require some major sequencer redesign.
2014-02-12 14:06:13 +06:00
Campbell Barton
5b0f03323b View3d: enabling quadview box would copy view offset, sync to avoid jump 2014-02-12 14:16:03 +11:00
Campbell Barton
38ead88dee View3d: fix for quadview box only syncing some view axis 2014-02-12 14:16:03 +11:00
Campbell Barton
7731a940d1 View3d: add utility function to get the quat from a view axis 2014-02-12 14:16:02 +11:00
Campbell Barton
5c8d5c70cf View3d: ensure locked views are on an axis - behavior wasn't well defined. 2014-02-12 11:26:02 +11:00
Campbell Barton
bfd0b582ca fix/workaround for v3d object mode selector flipping direction
Allow menu functions to define their own direction, this way
menu_item_enum_opname_menu can keep menu flipping from 2.69.
2014-02-12 10:29:15 +11:00
Campbell Barton
18a8d88923 Transform: better logic to calculate manipulator normal orientation.
Use Z axis for the edge direction for edges and vertex pairs.

Issue raised in T38592, now edge select and vert-pairs share logic
for calculating orientation and the active vertex determines direction.
2014-02-12 08:48:33 +11:00
IRIE Shinsuke
38e58612ef Revert own previous commit rBe2f9afbaabbd.
The "Cast Shadows" worked as expected, but it can cause problem in some cases.
For example, when using strand render, we need disabling only buffer shadows,
but the previous changes made that impossible. "Cast Shadows" should be added
as a newly created option.
2014-02-12 05:46:26 +09:00
Brecht Van Lommel
afadaaf8e0 Code cleanup: fix a few visual studio compiler warnings. 2014-02-11 18:49:32 +01:00
Campbell Barton
0e97550fb3 Mesh Data: disable two-sided for new meshes (see: T37518) 2014-02-12 02:46:43 +11:00
Campbell Barton
7e300ed3a1 UI: change to give sliders more text space, messes with alignment 2014-02-12 02:46:43 +11:00
Campbell Barton
f90a913695 Fix for fix with render layer menu 2014-02-12 02:46:42 +11:00
Brecht Van Lommel
e91ddf02a8 Fix T38547: crash in skeleton sketching. 2014-02-11 16:14:20 +01:00
Brecht Van Lommel
5af3b02f72 Fix T38578: blender internal texture nodes + volume render error. 2014-02-11 16:10:29 +01:00
Brecht Van Lommel
d2b15b0a8c Fix T38590: some material operators incorrectly appeared in the spacebar search menu. 2014-02-11 15:21:17 +01:00