Commit Graph

41099 Commits

Author SHA1 Message Date
Bastien Montagne 4a2f6447ef Core code for split normals computation. Many thanks to ideasman for is optimization guiding and code reviews!
Note the API is not yet committed, as it may need a few more checks & tweaks. ;)
2013-09-10 12:48:08 +00:00
Sergey Sharybin b56f8b139b Enable view3d-like shortcuts for pivot point in clip editor 2013-09-10 12:46:27 +00:00
Sergey Sharybin c4e4329f29 Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursor 2013-09-10 12:46:23 +00:00
Sergey Sharybin e72c6f191f Tweaks to plane track
- Do plane re-evaluation only when transform is actually done.
  Before this re-evaluation happened on every mouse move.

- Added a flag "Auto Keyframe" for the plane track, which does:

  * If Auto Keyframe is enabled, then every manual edit of the
    plane will create a new keyframe at current frame and update
    plane motion between current frame and previous/next keyframe.

    This now also implies blending detected motion with neighbor
    keyframes, so there's no jump happening.

    No automatic update on manual point tracks edit will happen.

  * If auto Keyframe is disabled, then no keyframes are adding
    to the plane and every plane tweak will re-evaluate in on
    the whole frame range.

    In this case manual tweaks to point tracks and re-tracking
    them implies plane re-evaluation.
2013-09-10 12:46:18 +00:00
Campbell Barton 0f81ea0db9 remove redundant indirection in asserts 2013-09-10 11:47:21 +00:00
Campbell Barton 73be170fb5 add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
it can be added and removed many times per function but will always remain the size of the maximum number of items.

not used yet, added for normal calculation function from mont29.
2013-09-10 11:04:20 +00:00
Thomas Dinges 561e82e927 * Compile fix for r59990. 2013-09-10 09:06:24 +00:00
Lukas Toenne 4e9145fa1c makesrna fix: The C++ wrapper functions for collection lookup (both int and string) were not clearing the return pointer if no item is found, but only in case there is a custom lookup function defined.
This causes trouble with Cycles because the C++ API uses the returned pointer to determine validity - if no item is found the pointer should be NULL for checking.
2013-09-10 08:27:13 +00:00
Campbell Barton 5dbe17cc12 add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()
uses Andrew's monotone chain 2D convex hull algorithm.
2013-09-10 07:52:10 +00:00
Nathan Letwory b6a6074b56 Change window checks to desktop size instead of screen size.
This allows to open windows stretched over monitors. Saving
stretched layouts open correctly as well.

Renamed screensize_all to desktopsize to better convey meaning.
2013-09-10 06:32:32 +00:00
Nathan Letwory 8f3f110348 Add BLI_utildefines.h for __func__ (necessary for MSVC). 2013-09-10 05:57:54 +00:00
Campbell Barton c7f0344aae fix/workaround [#36694] Texture node groups tend to crash Blender a lot. 2013-09-10 03:18:43 +00:00
Campbell Barton 48c0c6ac02 fix [#36492] Keymap: Issue setting operator path properties 2013-09-10 02:49:33 +00:00
Campbell Barton 4ad9abcb68 fix [#36693] segfaults when split vertice of Bezier curve
own error in recent curve split patch.
2013-09-10 01:06:45 +00:00
Campbell Barton fc6c283271 code cleanup: use bool for imbuf allocation functions. 2013-09-10 01:00:03 +00:00
Campbell Barton ec388a2a15 fix [#36187] Crash loading large images
alloc size was larger then an int, use size_t for all image alloc sizes.
2013-09-10 00:53:39 +00:00
Brecht Van Lommel 1bbc432ead Fix #36356: faces not drawn with constructive modifier + dynamic paint, where it
overrides material colors with dynamic paint colors.
2013-09-09 20:46:43 +00:00
Bastien Montagne 83b2eefd09 Usual UI messages fixes... 2013-09-09 20:22:01 +00:00
Antony Riakiotakis 00641bb237 Attempt fix for #36688.
Curves may not be not initialized when called from python. C code
explicilty says that curvemapping_initialize should be called prior to
evaluating the curve, however the curve clip rectangle is not available
when calling evaluation on the curvemap. This is not possible unless we
force the evaluation on CurveMapping level, not on CurveMap level.

For now just pass a rectangle with the x boundary values of the curvemap
for evaluation to avoid the crash.
2013-09-09 18:39:51 +00:00
Brecht Van Lommel 97d250fa65 Fix #36692: crash with split viewer compositing node and rendering. Only one viewer
node should write to the viewer image, the logic to check this was wrong, now made
it the same as the viewer node.
2013-09-09 18:00:25 +00:00
Brecht Van Lommel 60da8c1ae0 Fix #36593: crash duplicating window on OS X in some situations. User data
should be set before GHOST_SetWindowState, since this may generate an event.
2013-09-09 16:55:35 +00:00
Sergey Sharybin 59be901a37 Some more fixes to missing look initialization 2013-09-09 15:34:13 +00:00
Brecht Van Lommel 9c2c3c1804 Film response looks:
* Reorder list a bit to put brands together
* Move looks menu below views
* Rename camera_response to film_response folder, to make clear that these
  are photographic film types, not camera models
2013-09-09 14:23:58 +00:00
Brecht Van Lommel 630a06dd83 Fix #36682: disable shift+backspace shortcut to delete all text in text fields,
it's too easy to hit accidentally and isn't a standard shortcut. Deleting all
text is quite easy by just pressing backspace right after clicking the text
field anyway.
2013-09-09 14:23:47 +00:00
Sergey Sharybin 24b27b0474 Create/delete keyframe for motion tracks in clip editor
Use I to create a new keyframe, Alt-I to remove the ketframe.
2013-09-09 11:55:52 +00:00
Sergey Sharybin 6217a080db Avoid using "bundle" in condole message print
According to bf-vfx the word "bundle" was confusing
for artists.
2013-09-09 11:40:41 +00:00
Sergey Sharybin ea94411db6 Enable vertex snapping to bundle positions
This means it's possible now to snap stuff to
reconstructed tracks positions.
2013-09-09 11:37:37 +00:00
Sergey Sharybin cf8cddf07a Film response curves implemented as a looks
This commit implement's OCIO's Looks idea which
is about applying some color correction on the
buffer before it get's affected by a display
transform.

This is mainly used to modify images in an
artistics way.

Currently we've got looks generated from film
response curves for all sorts of cameras.

Patch by both of me and Brecht.
2013-09-09 09:48:26 +00:00
Sergey Sharybin 35e3111475 Fix own mistake in one of previous commits
Was overriding list's link next/prev after it was
added to the list.

Also, no need to set next/prev to NULL when adding
a link to the list.
2013-09-09 08:50:12 +00:00
Lukas Toenne 854f99b31e Fix #36663, Bone properties sometimes vanish when mousing into properties window.
Active edit bone was cleared from armature after each file save, even though the edit data is not actually freed then. Without the active edit bone the poll functions for bone panels fail.
2013-09-09 06:31:30 +00:00
Campbell Barton 00bd7da674 correct error in recent changes for building with openmp.
rename DM_OMP_LIMIT to BKE_MESH_OMP_LIMIT and set to 0 when in debug mode, same for BM_OMP_LIMIT.
2013-09-09 05:42:26 +00:00
Campbell Barton 66efedd096 enable strict flags for mesh_evaluate.c 2013-09-09 03:12:23 +00:00
Campbell Barton 40b6532ec8 remove use of BLI_array in BKE_mesh_mpoly_to_mface(). was over-allocating anyway so just allocate the array once. 2013-09-09 02:16:22 +00:00
Campbell Barton 2646bbdccb move mesh evaluation functions (normal, mapping, smooth group... etc, calculations) into mesh_evaluate.c.
mesh.c was over 4k lines and complex functions mixed in with general library management.
2013-09-09 02:11:44 +00:00
Campbell Barton fdce634310 screw tool used uninitialized normal to detect flipping direction.
lookes like bug from bmesh merge, restored from 2.4x.
2013-09-08 22:52:48 +00:00
Campbell Barton 108a4c41c4 code cleanup: warnings and redundant checks. 2013-09-08 20:25:31 +00:00
Tamito Kajiyama 74a4ac85f4 Changes to Freestyle default parameters:
- The "Same Object" chaining option enabled (see follow-up discussions in Bug #36629).
- Sphere radius set to 0.1 (was 1.0 resulting in a longer computation time).
2013-09-08 17:56:04 +00:00
Bastien Montagne 470dc6de4b Some fixes to tips... 2013-09-08 14:01:14 +00:00
Campbell Barton 648f2102d8 update bmesh doxy docs, remove double-promotion warnings in remove-strict-flags cmake macro. 2013-09-08 06:55:58 +00:00
Campbell Barton 3527d2fb27 code cleanup: quiet warnings 2013-09-08 06:05:42 +00:00
Campbell Barton 385cbb657d patch [#36633] Correct headers for renders saved as bitmap (.bmp) format.
by Brandon Northcutt (occamsdream)

Blender was writing invalid bitmaps that imagemagick and ffmpeg couldn't read.
2013-09-08 03:39:45 +00:00
Campbell Barton e492fad130 shrink-wrap constraint, improve and remove some limitations.
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before).
- support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive.
- add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side).

note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.
2013-09-07 12:59:16 +00:00
Bastien Montagne 3da3c36644 Usual blenderplayer stub fix... ;) 2013-09-07 12:46:48 +00:00
Campbell Barton 4f369c1e2d use strict flags for gridfill, use unsigned ints. 2013-09-07 08:41:29 +00:00
Campbell Barton 0423d2b252 changes to grid fill
- use 4 weights for vertex customdata blending (was previously only using 2)
- option for simple blending, which blends locations using weights too and doesn't attempt to maintain the shape,
  useful for flat surfaces or times when keeping the shape gives odd results.
2013-09-07 08:13:39 +00:00
Campbell Barton 65fcc29d0c missing NULL check in recent commit, also skip some calculations in mean_value_half_tan functions for degenerate cases. 2013-09-07 06:56:27 +00:00
Campbell Barton 7e068a16f0 avoid divide by zeto in node preview drawing. 2013-09-07 04:35:26 +00:00
Campbell Barton ec986b2c34 rna wrap WM_cursor_warp 2013-09-06 23:17:29 +00:00
Campbell Barton 2c688788e6 wrap cursor setting so python can make use of it, eg:
- win.cursor_set('WAIT')
- win.cursor_modal_set('TEXT')
- win.cursor_modal_restore()
2013-09-06 22:54:22 +00:00
Campbell Barton 35cd649c66 rename cursor setting functions to make modal set/restore more clearly related functions. 2013-09-06 22:34:29 +00:00