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
aa6374dc0a
fix for own error in vertex slide, isolated verts mixed with regular selection would crash.
2013-01-21 03:00:10 +00:00
38cee985bb
code cleanup: style & warnings.
2013-01-21 02:30:40 +00:00
aaad394b7f
Fix #33939 , if initialization of vert slide failed, code did not handle
...
the case well.
2013-01-21 00:39:54 +00:00
162c331417
style cleanup
2013-01-19 06:12:25 +00:00
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
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
c1f6261aee
fix for own bug introduced when splitting up vertex slide function.
2013-01-17 06:21:20 +00:00
e6e8bd5db4
resolve issue [ #33882 ] New GG slide - Lost functionality
...
Holding Alt stops switching the active edge so you can drag in the negative direction.
2013-01-16 02:23:34 +00:00
2e154f7ce5
vertex slide was using flipped value, wasnt so noticable unless you types in a value.
2013-01-15 03:35:31 +00:00
14925a8e51
optimization for calcNonProportionalEdgeSlide(), avoid matrix multiply for each vertex.
2013-01-13 14:49:04 +00:00
587b91be4a
transform feature - G-key during transform toggles slide (edge slide or vertex slide), similar to how trackbacll rotate toggles.
2013-01-13 14:22:37 +00:00
af5d994b15
add new vertex slide transform operator, different from the existing vertex slide tool based on user feedback.
...
- no 2-step select edge, then slide. Instead you can slide and select the edge at the same time.
- ability to slide multiple verts at one.
supports proportional option for vertex slide and flipping, both matching edge slide functionality.
2013-01-13 14:08:53 +00:00
80f0bfe483
code cleanup: rename transform Slide operations to EdgeSlide.
2013-01-13 05:19:47 +00:00
3225131223
speedup for EDBM_uv_vert_map_create(), reduce customdata lookups. also remove redundant check for hidden faces.
2013-01-12 20:01:09 +00:00
e24443b79a
style cleanup
2013-01-09 03:30:15 +00:00
c3b5c726c7
* Fix for #31581 . The issue was that we scaled the face prior to
...
projecting it. The original paper suggests to simply interpolate between
the two points of an edge if the distance of the point to that edge is
smaller than a threshold.
* Fixed both 3D and 2D code to utilize this. Possibly other places in
blender where this scaling is done will have to be adjusted.
* Changed vertex interpolation to use 2D interpolation, since it already
did projection on plane and 2d calculations are faster.
* Also added notifier on hard recalc when uvcalc_transfor_correction is
used. Results in instant feedback on UV editor when edge sliding.
2013-01-07 21:42:40 +00:00
03044290ce
remove stray glBegin() during transform that caused a glError
2013-01-04 09:35:38 +00:00