Campbell Barton
0b40266afc
revert edit from r55461, causing build error on some systems.
2013-03-21 14:46:37 +00:00
Joshua Leung
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
Campbell Barton
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
Ton Roosendaal
1d9b80fc3b
Bug fix #34620
...
SHIFT+T (texture space transform) crashed in editmode. Not checking NULL pointer.
2013-03-13 15:11:45 +00:00
Bastien Montagne
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
Campbell Barton
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
Campbell Barton
153b63e0fd
style cleanup
2013-03-12 21:46:33 +00:00
Bastien Montagne
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
Campbell Barton
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
Campbell Barton
ddddb7bab1
code cleanup: favor braces when blocks have mixed brace use.
2013-03-09 03:46:30 +00:00
Campbell Barton
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
Campbell Barton
98f7f73644
fix [ #34415 ] Edge slide results in segmentation fault on certain mesh
2013-02-26 03:20:10 +00:00
Bastien Montagne
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
Bastien Montagne
04d628a5b5
Another huge bunch of new UI translations (some reported by Leon Cheung, thanks!)...
2013-02-19 15:45:56 +00:00
Campbell Barton
9ab3d4ff1e
fix [ #34303 ] Rotation fcurves don't work with transforming with individual centers
2013-02-18 16:35:13 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
18f12c3fa4
allow alt or Ckey to toggle clamping for vertex slide.
2013-02-17 05:39:55 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
441c7fb79a
fix for crashes running some operators in background mode and some divide by zero errors.
2013-02-06 02:48:03 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
340845289b
fix [ #34024 ] delete - Edge loop crash
2013-01-29 08:19:23 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
c16a4ca84a
fix for r54166, the average edge length needs to be maintained.
2013-01-29 02:17:19 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
af70a34bfb
code cleanup: just variable naming
2013-01-29 01:02:45 +00:00
Campbell Barton
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
Joshua Leung
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
Campbell Barton
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
Sergej Reich
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
Campbell Barton
aa6374dc0a
fix for own error in vertex slide, isolated verts mixed with regular selection would crash.
2013-01-21 03:00:10 +00:00
Campbell Barton
38cee985bb
code cleanup: style & warnings.
2013-01-21 02:30:40 +00:00
Antony Riakiotakis
aaad394b7f
Fix #33939 , if initialization of vert slide failed, code did not handle
...
the case well.
2013-01-21 00:39:54 +00:00
Campbell Barton
162c331417
style cleanup
2013-01-19 06:12:25 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
c1f6261aee
fix for own bug introduced when splitting up vertex slide function.
2013-01-17 06:21:20 +00:00
Campbell Barton
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
Campbell Barton
2e154f7ce5
vertex slide was using flipped value, wasnt so noticable unless you types in a value.
2013-01-15 03:35:31 +00:00
Campbell Barton
14925a8e51
optimization for calcNonProportionalEdgeSlide(), avoid matrix multiply for each vertex.
2013-01-13 14:49:04 +00:00
Campbell Barton
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
Campbell Barton
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