Campbell Barton
e72ee8ec19
fix [ #29633 ] Mirror-Y also flips Z axis
...
Was floating point precision error (FLT_EPSILON was too small).
2012-11-21 13:39:32 +00:00
Brecht Van Lommel
489e9cb788
Fix part of #31080 : missing UV editor redraw after edge slide with correct UVs.
2012-11-10 03:05:08 +00:00
Campbell Barton
eff734203f
add fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_length() to avoid divide by zero when a vertex has no connected geometry.
...
also style cleanup.
2012-11-09 08:28:14 +00:00
Campbell Barton
0f2c27b855
Option for shrink-fatten to maintain shell thickness (hold Alt).
2012-11-09 05:37:36 +00:00
Campbell Barton
a10ed84bf4
fix [ #33094 ] Even edge slide on multiple loops destroys geometry
2012-11-07 11:19:54 +00:00
Campbell Barton
29ef22a5fd
code cleanup: use enums for view3d_snap transverts.
2012-11-05 10:33:59 +00:00
Sergey Sharybin
71b8469e3b
Slight better solution for sequencer's transform with alt holded down
...
Set T_ALT_TRANSFORM flag event handling function rather than accessing
window manager form flushing sequencer transform data.
Visual feedback about what exactly will happen on placing strip between
two other strips could be also improved.
2012-11-05 10:15:58 +00:00
Campbell Barton
fae6c35ca7
code cleanup: quiet -Wdouble-promotion, disabled this warnings for a few files since its done throughout the code in some places.
2012-11-04 07:18:29 +00:00
Campbell Barton
a1856a38f6
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3
2012-10-30 14:22:49 +00:00
Ton Roosendaal
601cd0215c
Removed leftover debug print.
2012-10-27 12:31:35 +00:00
Campbell Barton
9fc95bd7ee
use min/max inline functions where MIN2/MAX2 were doing type conversion.
2012-10-27 11:18:54 +00:00
Ton Roosendaal
25f2439c47
Transform: didn't set "event handled" to zero on undhandled events.
...
(like double click)
2012-10-27 10:22:41 +00:00
Campbell Barton
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
Campbell Barton
0a3e0b816c
no need to update normals when running edge-split modifier since the normals are now set on conversion.
...
don't show 'Auto-Key' message when in editmode.
2012-10-24 11:53:48 +00:00
Campbell Barton
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
Campbell Barton
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
Campbell Barton
67e2768570
quiet some -Wshadow warnings
2012-10-12 14:35:10 +00:00
Campbell Barton
4124e2e0c9
get the width and height of the font at once when drawing auto-key,
...
also move BLF'g global font init into its own static function.
2012-10-11 23:42:26 +00:00
Joshua Leung
38e5562447
Removed duplicate include of stdio.h
...
At least on mingw, this doesn't seem to be needed.
2012-10-11 10:19:38 +00:00
Joshua Leung
fc1467df5f
Auto key warning - Stripping down to basics
...
Now just a static icon + text display in corner of view. No blinking. No
red/orange text. No window borders.
2012-10-11 09:53:17 +00:00
Joshua Leung
27aa05ec36
Autokey warning - trying with a slight "calmer" color
...
Now it uses the same color used for indicating keyframes instead of using
"error" indications.
2012-10-09 10:41:51 +00:00
Joshua Leung
fca582a2da
Autokey warning - Only show for the active region
...
In response to some of the feedback, I've taken a second look at the situation
when multiple views are open, and indeed in that situation having it display in
every region and blinking was quite overwhelming (admittedly, I've mainly been
testing on single-view setups). Now it only shows for the region that was used
for initiating the transform.
2012-10-09 10:36:07 +00:00
Campbell Barton
62d3754a40
fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)
2012-10-09 03:44:29 +00:00
Joshua Leung
a2a9b6b9a3
Made the autokeying warning optional by adding a user pref for this
...
By default, this is enabled, so that newbie users who are most likely to be
caught short by this will get the benefits of this option, while seasoned
animators are likely to know where to go to turn things off (i.e. the scratch-
an-itch urge is quite a powerful motivating force...)
2012-10-09 00:59:40 +00:00
Bastien Montagne
1d6dff7e34
Some minor fixes about curves' tilt...
2012-10-08 20:01:36 +00:00
Campbell Barton
ccd9f1491a
style cleanup: line length,
...
rename V3D_PROJ_RET_SUCCESS -> V3D_PROJ_RET_OK
2012-10-07 14:00:18 +00:00
Campbell Barton
db70bfc206
code cleanup: use functions to initialize selection user data structs, use radius-squared for circle select comparisons.
...
edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.
2012-10-05 15:44:11 +00:00
Joshua Leung
5baa587a12
Warning indicators for animators when Auto Keying is enabled during transform
...
Recently on the bf-funboard list, there have been some requests for clearer
indications for animators that autokeying has been enabled when transforming so
that corrective action can be taken sooner if this wasn't expected. This is
especially important in distributed+collaborative environments where multiple
artists may work on a single shot file: someone working on a shot from
another animator may not be aware that autokeying was enabled, thus accidentally
setting a whole bunch of extra keyframes.
In this current incarnation, we display using red (not hardcoded, but using an
existing theme color) a solid 1px border around the 3D view while transforming
with autokeying enabled. In addition to the border, a blinking indicator (record
icon + "Auto Keying On" text) appear in the top right corner, as inspired by the
traditional recording indicator icons on camcorders.
2012-10-05 13:22:09 +00:00
Campbell Barton
5770e44f43
replace most uses of ED_view3d_project_float_noclip() with ED_view3d_project_float_global/object
2012-10-05 03:57:56 +00:00
Campbell Barton
e77004157e
make ED_view3d_project_int equivalent to ED_view3d_project_short functions.
2012-10-04 17:52:12 +00:00
Campbell Barton
da656957c3
fix [ #31654 ] Non-proportional edge slide behaving incorrectly.
2012-10-01 10:43:52 +00:00
Campbell Barton
b0fb857ef2
fix [ #32684 ] Shrink/Fatten tool has odd behavior
2012-09-28 14:31:07 +00:00
Campbell Barton
483a6cd6c2
fix for cycles/python script error in normal panel
2012-09-26 19:23:06 +00:00
Brecht Van Lommel
d2695c62a2
Mask Editor: make Alt+S feather shrink/fatten work better when no feather was
...
defined yet, previously would just stick to original curve then.
2012-09-21 12:18:14 +00:00
Campbell Barton
edb78d090c
code cleanup:
...
- make view3d project names more consistent.
- remove apply_project_float() its not needed.
- update comments referencing an old function name.
- move doxygen docs into the C file, prefer they are kept here to avoid getting out of sync with code.
2012-09-20 04:56:24 +00:00
Bastien Montagne
e5d0dcb8d8
Few cleanup in matrix mathutils (make mul_m3_m3m4 and mul_m4_m3m4 consistant with other similar funcs, mainly copy-safe [i.e. you can use the same matrix as operand and result, saves lines in some already over-complicated code!]).
2012-09-16 15:25:28 +00:00
Campbell Barton
232571c61a
code cleanup: replace macro for BLI_rect size/center with inline functions.
2012-09-15 11:48:20 +00:00
Campbell Barton
05755d307a
fix [ #31946 ] Masking doesn't respect pixel ratio
2012-09-13 05:29:38 +00:00
Campbell Barton
2812dd92cf
code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.
2012-09-10 03:34:43 +00:00
Campbell Barton
1a7eb3454e
style cleanup
2012-09-08 08:59:47 +00:00
Campbell Barton
0ecbc047e8
code cleanup
2012-09-06 23:41:03 +00:00
Campbell Barton
56534ecdcb
style cleanup: also add debugging print function for derived mesh DM_debug_print_cdlayers()
2012-09-03 02:41:12 +00:00
Brecht Van Lommel
0b4dfa1fcb
Fix #32450 : edge slide with multiple loops selected could move some loops
...
in the wrong direction.
2012-08-31 12:08:04 +00:00
Joshua Leung
0db80bdb88
Style cleanup - adding some braces around some multi-line statements (used after
...
if/else if/for)
2012-08-30 13:18:33 +00:00
Campbell Barton
93d89ec768
correct assert for customdata overlap, also quiet uninitialized warning in transform.
2012-08-24 08:17:53 +00:00
Campbell Barton
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
Campbell Barton
77f47799dd
code cleanup: use BLI_RCT_SIZE macro
2012-08-20 23:06:17 +00:00
Campbell Barton
5e0f254afa
utility functions for getting/setting rectangles for operators.
2012-08-08 20:38:55 +00:00
Daniel Genrich
731c6ebec4
Patch [ #32246 ] (Bugfix): UV editor -> "Proportional edit" together with "constrain to bounds" does not work.
...
Patch reviewed by Campbell Barton. Thanks!
2012-08-06 13:40:29 +00:00
Campbell Barton
1d5b2ea253
mask transforming when a mesh object was in editmode (but had no UV's), failed
2012-08-03 20:12:49 +00:00