0f7fbe13ba
fix [ #35009 ] Edge/Vertex Slide issue using G-G.
...
add support for edge slide on boundary edge loops as well as loops with mixed in boundary faces.
2013-04-19 08:42:11 +00:00
5aef06fc04
code cleanup: edge slide, avoid building BVH tree, more logical var names.
2013-04-19 02:47:31 +00:00
79ac3576ca
fix for incorrect edge loop slide direction when one of the loop sides was lost walking around the loop.
2013-04-19 02:36:52 +00:00
e0464a0549
code cleanup: remove unused vars in edge slide, only store the initial vertex coords rather then a copy of the whole vertex, name edge slide directions a/b rather then up/dowb.
2013-04-19 02:22:23 +00:00
34f9932418
simple optimization, replace BM_face_other_edge_loop() with BM_loop_other_edge_loop() in situations where the loop is known this avoids a lookup.
2013-04-19 01:02:58 +00:00
9cceec40c4
use modified vertex coords for calculating display thickness and intersections.
...
internal improvement to editmesh_bvh.c
- optionally pass cage-coords as an arg, rather then calculating the coords in BKE_bmbvh_new(),
since all callers already have coords calculated.
- de-duplicate coords creation function from knife and bmbvhm, move into own generic function: BKE_editmesh_vertexCos_get()
2013-04-18 01:20:04 +00:00
37e73aa368
code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and BKE_editmesh_bvh.h
2013-04-16 05:59:48 +00:00
fa919d23bc
move editmesh_bvh.c into blenkernel.
2013-04-16 05:23:34 +00:00
da5e0ea8fe
bmesh operators: use operator type-flag to specify which operations require normal-calculations and which operations require selection flushing.
...
eg, no need to flush selection after 'Smooth' tool, no need to recalculate normals after 'Select Similar'.
2013-04-14 06:22:34 +00:00
de50c12dba
skip unneeded calculations when calling calculateTransformCenter()
...
which gets called whenever the view is rotated when rotate-around-selected preference is enabled.
2013-04-04 21:40:39 +00:00
19dd08a482
metaballs were not scaling/rotating about their own centers when V3D_LOCAL was used.
2013-04-04 09:59:06 +00:00
2804caff4c
code cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful var names.
2013-04-04 04:22:38 +00:00
0b40266afc
revert edit from r55461, causing build error on some systems.
2013-03-21 14:46:37 +00:00
67e54eb819
Bugfix: Transform autokey warning indicator text was getting clipped prematurely
...
After quite some time debugging going back through previous commits for this
feature and digging around the internals of the blenfont,I finally found the
culprit. It turns out that there was just a single line missing between
BLF_width_default() and BLF_width_and_height_default(), which caused the widths
returned to understimate the space required or so, causing text clipping. The
offending line probably correcting for different DPI scaling values.
2013-03-21 11:14:53 +00:00
ffc8ecc587
use BLI_strncpy_rlen() rather then BLI_snprintf() when no formatting is needed.
...
also replace sprintf with strcpy when no formatting is done.
2013-03-14 10:39:18 +00:00
1d9b80fc3b
Bug fix #34620
...
SHIFT+T (texture space transform) crashed in editmode. Not checking NULL pointer.
2013-03-13 15:11:45 +00:00
ad9e675ee1
Fix [ #34628 ] Shift-V (vertex slide) does no longer show "vertex slide:" for the user.
...
Own stupid mistake in r55214 refactor.
2013-03-13 14:56:17 +00:00
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
153b63e0fd
style cleanup
2013-03-12 21:46:33 +00:00
b3ff0d6d2a
Temp fix for stupid -Wformat-security issue.
...
Also makes more use of BLI_snprintf, and makes more consistent code acrross all "header strings" generation in transform.c.
2013-03-12 13:18:39 +00:00
abd1748e48
code cleanup: move runtime var zfac out of RegionView3D. rename initgrabz() -> ED_view3d_calc_zfac() and have it return the zfac to use.
2013-03-09 11:40:42 +00:00
ddddb7bab1
code cleanup: favor braces when blocks have mixed brace use.
2013-03-09 03:46:30 +00:00
4f4e45540d
fix for harmless glitch rotating the camera in camera mode, having the center point so close to the viewpoint caused the helper line to erratically move about because of float precision.
2013-02-28 11:29:27 +00:00
98f7f73644
fix [ #34415 ] Edge slide results in segmentation fault on certain mesh
2013-02-26 03:20:10 +00:00
5d04d06d76
Fix drawing of translated strings (can't use _ascii version of BLF_draw in these cases, when WITH_INTERNATIONAL is defined we need unicode support).
2013-02-20 08:39:31 +00:00
04d628a5b5
Another huge bunch of new UI translations (some reported by Leon Cheung, thanks!)...
2013-02-19 15:45:56 +00:00
9ab3d4ff1e
fix [ #34303 ] Rotation fcurves don't work with transforming with individual centers
2013-02-18 16:35:13 +00:00
4cd487d731
checking for V3D_LOCAL was duplicated in transform.c, and both checks not quite correct.
...
- When checking edimode, make sure its mesh editmode.
- Graph editor supports this option but wasn't being checked.
2013-02-18 15:47:13 +00:00
b0a7370284
vertex slide: dont write clamped value back into TransInfo.values,
...
this meant toggling clamp didn't take any effect until the mouse was moved. (annoying glitch)
2013-02-17 05:58:18 +00:00
18f12c3fa4
allow alt or Ckey to toggle clamping for vertex slide.
2013-02-17 05:39:55 +00:00
8d339a89db
fix [ #33949 ] T_ALT_TRANSFORM conflicts with "emulate 3 button mouse"
...
finally last transform tool relying on alt has an alternative.
Sequencer slide which makes room for the placed strip by moving others - Pressing G a second time toggles this behavior.
2013-02-14 14:50:16 +00:00
9449866bdc
fix (for one case of...) [ #33949 ] T_ALT_TRANSFORM conflicts with "emulate 3 button mouse"
...
ShrinkFatten operator now uses scale key to toggle 'Even thickness' option.
With the default keymap this is Alt+S,S.
Added functionality so the header print can get the key used for the modal keymap, some other operators should make use of this too.
2013-02-14 14:01:02 +00:00
b59ba34c37
fix [ #34152 ] Vertex Slide - misleading description
...
also use C key to toggle clamping rather then alt (reported in [#33949 ]).
2013-02-11 01:55:58 +00:00
441c7fb79a
fix for crashes running some operators in background mode and some divide by zero errors.
2013-02-06 02:48:03 +00:00
415b425e65
improve edge slide with ngon's, distance calculation was average edge length.
...
now use the slide vector to find opposite ngon edge which sets the slide destination.
2013-02-03 07:26:58 +00:00
1f21efdeac
fix [ #34073 ] Combined EdgeLoop slides weirdly on even try
...
concave check on co-linear edges could fail, avoid by using the loop-direction + face normal.
2013-02-03 06:09:29 +00:00
c734808fb0
fix error with flipped vertex slide failing, also fix bug where you could be flipped and in proportional vertex slide mode.
2013-01-31 22:18:37 +00:00
340845289b
fix [ #34024 ] delete - Edge loop crash
2013-01-29 08:19:23 +00:00
0d0dc37aee
tweak to edge slide - use a quads opposite vertex when both edges share a quad, gives nicer results.
2013-01-29 05:30:39 +00:00
e9a4dd202e
fix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping should now work properly in all cases.
...
... somehow I managed to make test-cases that worked in previous commits but failed in other cases.
2013-01-29 05:18:30 +00:00
69585591d6
Correct fix for r54164, the testcase I was using worked but different edge slide examples didn't.
...
Edge slide needed to check for concave ngons too.
add BM_loop_is_convex() and expose to python too.
2013-01-29 03:25:47 +00:00
c16a4ca84a
fix for r54166, the average edge length needs to be maintained.
2013-01-29 02:17:19 +00:00
3b45518080
minor improvement to edge slide, normalize the edge vectors that accumulate the direction, otherwise longer edges would skew the direction.
2013-01-29 01:37:04 +00:00
3fc5002a4a
code cleanup: add some comments about to get_next_loop() for edge slide, also name vars better (was using meaningless names).
2013-01-29 01:31:42 +00:00
a0bd829637
fix for edge slide bug, when there were no edges to slide along the direction calculated from the face would be wrong half the time (depending on the edge loop direction which is arbitrary).
2013-01-29 01:23:33 +00:00
af70a34bfb
code cleanup: just variable naming
2013-01-29 01:02:45 +00:00
cf94722380
code cleanup: var rename and add assert, when writing to out of bounds array.
...
minor edit to recent tip change.
2013-01-29 00:20:04 +00:00
d4366b6f82
Bugfix [ #34019 ] Limit Constraints still affected transforms when turned off
...
Limit Constraints (i.e. Limit Location/Rotation/Scale/Distance) with 'For
Transform' option enabled would still be applied when transforming objects even
when they were turned off using the eye icon in the constraint panel headers.
The "off" flag was never added to the checks for muted or disabled constraints
to be skipped here.
2013-01-28 23:57:02 +00:00
69900035b3
fix for G,G causing vertex slide in UV/Image window, also comment unused defines/enums.
2013-01-24 08:49:40 +00:00
8b8d4ba7ef
sim: Remove "continue physics" code
...
This was left over from 2.4x days and is not used anymore.
Now simulations are always interactive.
2013-01-22 20:47:03 +00:00