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
b9113f205c
replace ED_view3d_project_float with ED_view3d_project_float_global
2012-10-05 03:20:14 +00:00
Campbell Barton
61ce7926d3
code cleanup: quiet warnings and use define for transform snap max distance.
2012-10-05 01:34:47 +00:00
Brecht Van Lommel
fedc8e1722
Cycles: add "From Dupli" option for texture coordinate node. This gets the
...
Generated and UV coordinates from the duplicator of instance instead of the
object itself.
This was used in e.g. Big Buck Bunny for texturing instanced feathers with
a UV map on the bird. Many files changed, mainly to do some refactoring to
get rid of G.rendering global in duplilist code.
2012-10-04 21:40:39 +00:00
Sergey Sharybin
63840fd505
Fix #32755 : Stripes in Metastrip can not be moved on other channel with mouse (grab tool)
...
The issue was caused by SEQ_BEGIN macro modifying sequence's depth
which ruined transformation routines. Used own DFS instead which
doesn't modify sequences.
Also corrected some typos in api and comments.
2012-10-04 18:30:28 +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
Bastien Montagne
872cc0c4c0
Kind of cleanup of "menu strings": always have a space between the entry's label and value (these strings are a nightmare to handle in RTL languages like arabic or persian, but a bit less of a nightmare this way ;) ).
2012-10-04 13:59:14 +00:00
Campbell Barton
35ae7dae9e
fix for own bug in bmesh api, setting a byte string customdata layer assumed the input data was 256 length, assigning smaller values would read past the buffer.
2012-10-01 15:39:29 +00:00
Campbell Barton
da656957c3
fix [ #31654 ] Non-proportional edge slide behaving incorrectly.
2012-10-01 10:43:52 +00:00
Campbell Barton
41965e197c
- transform's createTransCurveVerts was using both CTX_data_edit_object(C) and t->obedit, now only use t->obedit.
...
- freeing bez-triple handle data was being done in a loop for many types which don't support bezier handle data.
2012-09-28 14:51:33 +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
Campbell Barton
953e2321dd
fix for memory leak grabbing masks and grease pencil in the dope sheet. (also NULL after freeing)
2012-09-24 01:50:26 +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
Campbell Barton
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
Campbell Barton
0d5d2146eb
code cleanup: make shape key api names consistent with our new convention.
2012-09-19 10:12:07 +00:00
Campbell Barton
4ea7193ccf
code cleanup: marker transform was doing some redundant/misleading assignments & checks, remove unused cruft.
...
also remove some other redundant checks.
2012-09-19 01:34:10 +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
e74701fbfc
node transform was using PET mode (drawing a circle - but it did nothing), disable PET for nodes.
2012-09-14 01:28:26 +00:00
Sergey Sharybin
c3b808721b
Sequencer: add missed cache invalidation
...
Invalidation was missed for:
- Strip (Un)Muting
- Changing speed effect
- Strip translating
2012-09-13 10:51:18 +00:00
Sergey Sharybin
81d22a0e6b
Sequencer: fix invalid update when translating strip which is behind semi-transparent strip
2012-09-13 10:51:13 +00:00
Campbell Barton
05755d307a
fix [ #31946 ] Masking doesn't respect pixel ratio
2012-09-13 05:29:38 +00:00
Campbell Barton
62adcad9bd
fix [ #32444 ] Proportional Edit stays on on Pose Mode, after activating it in Object Mode.
...
disable PET in posemode.
2012-09-11 23:37:17 +00:00
Campbell Barton
a0ae47f06c
add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after.
...
also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks).
2012-09-11 02:18:27 +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
Brecht Van Lommel
f9bccc069c
Fix #32405 : snapping in UV editor does not work if snapping in 3D view is set
...
to "snap to face" with "project individual ..." enabled.
2012-08-30 17:41:59 +00:00
Joshua Leung
09af2fecfb
Silencing compiler warning (use of undefined value)
2012-08-30 14:09:50 +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
52310bd4a7
code cleanup: remove dead assignments, gave mask vars clearer names & moved some mask evaluation funcs into mask_evaluate.c
2012-08-26 18:09:01 +00:00
Sergey Sharybin
2536362f79
Sequencer: reshuffle overlapping strips on cancel trasnform
...
It was possible to create overlapped strips by duplicating and
cancelling transform, now it sohuld be handled properly.
2012-08-24 16:09:48 +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
c92ab5c3ef
code cleanup: use rect size macros
2012-08-21 20:34:05 +00:00
Sergey Sharybin
08417318cd
Sequencer: invalidate current frame cache on sequence transform
2012-08-21 10:42:21 +00:00
Campbell Barton
77f47799dd
code cleanup: use BLI_RCT_SIZE macro
2012-08-20 23:06:17 +00:00
Campbell Barton
26f073b327
macros for rectangle center and size
2012-08-20 15:29:02 +00:00
Campbell Barton
cf3d58512b
- fix for error in ndof patch.
...
- ColorBalanceModifierData wasn't aligned on 32bit systems.
- BM_vert_find_first_loop() was missing NULL check.
2012-08-19 15:56:49 +00:00
Campbell Barton
4120c18c47
re-enable metaball orientation for manipulator and view axis setting (was disabled since 2.4x)
2012-08-18 21:12:08 +00:00
Campbell Barton
5e0f254afa
utility functions for getting/setting rectangles for operators.
2012-08-08 20:38:55 +00:00
Campbell Barton
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
Sergey Sharybin
1bf893e9c8
Code cleanup: BKE_ prefix for public sequencer functions
2012-08-08 11:15:40 +00:00
Campbell Barton
8ae89f4942
speedup to inpaint node in my tests was about ~30% for an optimized build.
...
also replace MIN/MAX2 with inline functions in transform.
2012-08-07 09:20:30 +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
3b743582ec
node transform for frames was broken since the frames locx, locy are used as offsets, now node transform uses node ccenters (works nicer for regular nodes too).
2012-08-06 09:08:24 +00:00