Campbell Barton
23af6743c7
code cleanup: BLI_array.h's BLI_array_grow_items macro was unmanageable.
...
moved the main re-alloc logic into a C function.
2013-01-19 07:35:55 +00:00
Campbell Barton
162c331417
style cleanup
2013-01-19 06:12:25 +00:00
Campbell Barton
9051868564
patch [ #33923 ] Patch for Node Theme Colors
...
from Gavin Howard (gdh)
2013-01-19 04:20:53 +00:00
Campbell Barton
9a4da5a2f1
utility function to get a mempool as a pointer array.
2013-01-19 03:51:17 +00:00
Campbell Barton
bf355362b1
replace error prints with asserts in BLI_mempool when an iterator function is called on a non-iterator flagged pool.
2013-01-19 03:16:52 +00:00
Campbell Barton
53e383ff9d
patch [ #33924 ] Spelling Corrections
...
from Gavin Howard (gdh)
2013-01-19 03:04:51 +00:00
Campbell Barton
5006a39c27
replace calloc with malloc for arrays that are filled in right after.
2013-01-19 02:37:04 +00:00
Campbell Barton
38825f891e
use openmp for building bmesh arrays, also replace calloc with malloc.
2013-01-19 02:21:53 +00:00
Campbell Barton
f45d8827ba
CDDM_merge_verts() was building an index array for all loops and not using it.
...
also use malloc over calloc since the values are filled in right after.
2013-01-19 02:01:18 +00:00
Campbell Barton
f251eb3f0c
minor dyntopo speedup: was doing 2x ghash lookups for BM_log_face_removed(), BM_log_vert_removed(), only one needed.
2013-01-19 00:53:33 +00:00
Campbell Barton
a8abc11e42
dyntopo optimization - fast path for edges with 2 faces using it, was counting the edge-faces then using an iterator,
...
instead use BM_edge_loop_pair()
2013-01-19 00:17:10 +00:00
Campbell Barton
d4bf47350f
Holding Alt now removes [-1, 1] clamping in vertex slide, Thanks to Psy-Fi for the original patch.
2013-01-18 23:20:17 +00:00
Campbell Barton
32ce3a6ca7
utility vector functions for flipping one vector about another:
...
nicer then interp_v3_v3v3(v, v1, v2, -1.0f);
2013-01-18 23:07:27 +00:00
Campbell Barton
b7a2402da6
fix for building with BSD & MinGW.
2013-01-18 21:05:37 +00:00
Campbell Barton
5f9ea0d7eb
move draw all edges into the object settings (object panel), makes more sense here since its next to draw extra wire
2013-01-18 19:01:26 +00:00
Sergey Sharybin
a08a3ab931
Fix #33916 : 2.65a regression: particles duplicating objects with halo - crash
...
allow_render_dupli_instance used to pass zero-based index to give_current_material
which is wrong.
Before rev53332 it wasn't so much visible because give_current_material used
to clamp index internally. But that was wrong behavior here anyway, and why
nobody noticed this for so long? :)
2013-01-18 12:29:18 +00:00
Sergey Sharybin
9660ba6c2b
Fix #33910 : Wipe effect starts and stops to early with blur enabled.
...
Made small tweaks which now limits blur width in a way it can not
be wider than distance between frame boundary and wipe effect center.
It eliminates weirdeness of how blur appears/disappears in cases
effect fac is close to 0/1.
Could be tweaked further but will require effect rewrite it seems.
2013-01-18 09:36:17 +00:00
Alex Fraser
55030a4c1a
Applying sRGB color space transform when baking to vertex colors. Thanks to Campbell Barton and Sergey Sharybin for their help!
2013-01-18 09:19:43 +00:00
Sergey Sharybin
6a5cdde899
Fix #33913 : Unable to set sequencer proxy custom directory as relative path
...
Added absolute->relative conversion for directory in file_browse_exec.
This is how other places deals with this, but perhaps we'd better change
file selection so both filepath and directory are affected by relative
option.
2013-01-18 08:44:55 +00:00
Campbell Barton
ee0eb394c9
use openmp sections for felling origindex arrays
2013-01-18 06:26:06 +00:00
Alexander Pinzon
9e8c509213
The problem of the peaks is corrected with the use of the normalized version.
2013-01-17 19:19:02 +00:00
Campbell Barton
8a0ad8f8b5
fix for text selection glitch, moving the mouse to the left would sometimes not entirely select the start of the text.
2013-01-17 19:12:11 +00:00
Campbell Barton
2b80a7d5da
use define for text offset & seletion.
...
and no need to calloc memory for string selection.
2013-01-17 18:59:19 +00:00
Ton Roosendaal
a896366ca9
My bad - commit today for "Continuous Grab" fix ignored the comment that
...
bounds could be NULL :) Crash fixed.
2013-01-17 15:27:58 +00:00
Bastien Montagne
b8116ed659
"Fix" for [ #33903 ] Wrong description string in "remove vertices from vertex group" function - just making the tooltip describe both possible actions by this op!
2013-01-17 13:29:32 +00:00
Ton Roosendaal
0193c88083
Bug fix #33887
...
Ancient issue: on much zoomed in UIs, text selecting or cursor placement
in Text-input buttons was off.
2013-01-17 11:35:33 +00:00
Ton Roosendaal
7af0fff9d8
Bug fix #33892
...
HiDPI "retina" mode didn't work for "Continuous Grab" yet.
Note; this mode works by having different coordinate systems
for pixels and window/mouse coords. I really hope future
HiDPI implementations use the same trick.
2013-01-17 10:16:40 +00:00
Campbell Barton
9b57b2315c
include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :)
2013-01-17 09:11:51 +00:00
Campbell Barton
146d1b9cab
minor changes to view3d
...
- BKE_camera_params_from_object now sets the lens to 35 if the object isnt a camera/lamp, without this the view3d lens would be used in camera view.
- running smooth-view multiple times now stores the initial user view rather then over-writing from the current state each time re-smoothview runs.
- redraw panels after smoothview finishes.
2013-01-17 08:46:46 +00:00
Campbell Barton
d9855243d2
Accidentally added commented line when testing smoothview fix.
2013-01-17 08:07:09 +00:00
Campbell Barton
5f35d91ab5
fix [ #33894 ] Viewport heavily distorted
...
The SmoothView operator was mixing up source-view and original-view parameters cleanup this operator and add 'original' view settings store.
2013-01-17 08:05:48 +00:00
Campbell Barton
c1f6261aee
fix for own bug introduced when splitting up vertex slide function.
2013-01-17 06:21:20 +00:00
Campbell Barton
3040a6abaf
- draw inner pressure circle for weightpaint, vertexpaint, projectpaint modes.
...
- only draw pressure circle if the pressure is used for brush size.
- remove 'last-pressure' workaround for project paint, its no longer needed.
2013-01-17 04:24:22 +00:00
Campbell Barton
2fe92248a0
change to pressure & sculpt mode:
...
Ignore size+pressure when the sculpt tool doesnt use dynamic size brushes (grab, thumb for eg).
The problem was if you didnt jab the stylus on the tablet hard enough you'd end up with a tiny brush since the initial pressure was used.
2013-01-17 04:00:51 +00:00
Campbell Barton
0f981edc99
fix airbrush + tablet pressure bug.
...
Timer events used by the airbrush would always give a pressure of 1.0, ignoring the tablets real pressure in all paint modes.
Move tablet data into its own struct-member so it can be used with timer events.
2013-01-17 03:41:23 +00:00
Campbell Barton
60e5583933
add NULL check for XInput device, since its possible only one is valid.
2013-01-17 02:06:54 +00:00
Campbell Barton
86d4786305
draw active+disabled menu-items, helps for keyboard navigation.
2013-01-17 01:48:42 +00:00
Campbell Barton
350a776a52
fix for arrow keys being reversed in the snap menu (Ctrl+Shift+Tab)
...
also - when expanding rna enums into existing menus - don't nest inside a row/column.
2013-01-17 01:03:56 +00:00
Thomas Dinges
0601d54068
Release Cycle:
...
* Readme and release log links for the Blender 2.66 release.
2013-01-17 00:56:04 +00:00
Campbell Barton
c8df3db370
show a title in menus triggered by WM_OT_context_menu_enum, also show an icon when available.
2013-01-17 00:29:39 +00:00
Campbell Barton
6891c57e4c
change to own commit r53852. use existing pressure member of UnifiedPaintSettings.
2013-01-16 23:37:47 +00:00
Campbell Barton
93b58752d2
minor speedup for dyntopo edge queue - replace iterator with while loop.
2013-01-16 23:20:09 +00:00
Campbell Barton
d6c4d2a415
fix bug in dyntopo - check to remove pbvh vert was always false.
2013-01-16 23:12:43 +00:00
Campbell Barton
ba5e6380be
code cleanup: rename BMVert *v[3]; --> 'v_tri', since 'v' is normally for single verts.
2013-01-16 23:10:32 +00:00
Campbell Barton
3f647ed6af
code cleanup: double, float - conversion warnings.
2013-01-16 23:07:24 +00:00
Campbell Barton
4585336285
speed-up dyn-topo by storing the edge-loops rather then edge-faces.
...
- no need for bm_triangle_other_vert_find(), the other vert is known relative to the loop.
- no need for bm_face_edge_backwards(), the verts are in order in the loop.
2013-01-16 22:56:08 +00:00
Campbell Barton
5ddc7d64a8
optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh conversion).
2013-01-16 21:09:54 +00:00
Campbell Barton
7f513023d4
fix for airbrush not using tablet pressure (any brush with BRUSH_SPACE disabled).
2013-01-16 19:59:55 +00:00
Alexander Pinzon
f1cd290e08
Shape enhanced method exaggerates a shape using a Laplacian smoothing operator in the reverse direction.
...
http://wiki.blender.org/index.php/User:Apinzonf/shape_enhanced
2013-01-16 19:38:50 +00:00
Campbell Barton
337695d496
draw the brush size with pressure applied (when the tablet is used), nice to see the actual size used.
2013-01-16 19:22:15 +00:00