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
Campbell Barton
c41e1e434a
code cleanup: replace MIN2/MAX2 with minf/maxf
2012-07-29 16:59:51 +00:00
Campbell Barton
61469d2e3e
code cleanup: remove unneeded 'struct' qualifiers
2012-07-26 22:47:05 +00:00
Campbell Barton
ff078d309e
change clip utility function arguments to take space data and region rather then the context.
...
this allows a fix to be applied that corrects the helper line in the image view when transforming a mask.
2012-07-26 22:41:40 +00:00
Campbell Barton
ee572a9642
code cleanup: minor edits for mask/transform
2012-07-26 21:22:42 +00:00
Sergey Sharybin
6b7d013d8d
Fix #32123 : Blender crashes when zoomed in and rotating around 3d cursor
...
Fix deadlock in drawArc caused by precision error. Helper widget could
look wrong, that's because of not enough precision of floats used by
Blender.
This is known issue of Blender and wouldn't consider a bug.
2012-07-26 09:29:37 +00:00
Campbell Barton
927af4ccc9
mask transform now works in the image space
2012-07-25 19:36:59 +00:00
Campbell Barton
7fba5779ed
match function names for clip/image spaces
2012-07-25 16:30:53 +00:00
Campbell Barton
f83ea3fa85
fix some crashes with mask/image transfor, a few more areas working now.
2012-07-25 16:03:08 +00:00
Campbell Barton
c8db1e832d
minor edits for bmesh api
2012-07-20 09:49:54 +00:00
Campbell Barton
250cdd5e52
code cleanup: remove commented includes - mostly from 2.4x
2012-07-18 23:07:07 +00:00