8cd9d784c7
Replace sqrt with hypot for wipe-effect & transform code
2014-06-14 17:34:52 +10:00
c918f24edb
Tweaks to bevel and crease transform
...
They were using INPUT_SPRING in a way which didn't allow
it to easily redo the operator because INPUT_SPRING internally
is stored as a ration between old value and new one and crease
and bevel were converting this to value delta.
Now made it special input type INPUT_SPRING_DELTA which is
storing delta of the spring, meaning now values in the redo
panel kind of makes sense -- they mean how much to add/remove
to the crease/bevel weight.
Expect to be no functional changes from interactive transform
POV, just a bit more convenient to use redo panel.
2014-06-03 22:05:33 +06:00
c67bd49e56
Code cleanup: use 'const' for arrays (editors)
2014-04-27 00:25:15 +10:00
b1932477a7
Spelling error fixes
2014-04-25 13:19:21 +12:00
7199e2288f
Code cleanup: use sqrtf when input and output are float
2014-03-28 14:53:37 +11:00
5816aa42bf
code cleanup: minor transform refactor
...
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
2013-10-23 06:48:36 +00:00
b00a8122e3
improve warp transform so it can be used as a general bending tool too.
2013-10-13 01:09:23 +00:00
7998b2f6a7
transform - use 2d float's for the viewport center (allows for vector math functions to be used more easily).
2013-10-12 03:42:06 +00:00
f3518d9d76
fix for crash changing transform modes rotate/edge-slide/grab. setCustomPoints() assumed allocated member was big enough which wasnt the case when switching from rotate.
2013-04-24 15:06:42 +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
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
b2feb19c02
fix for memory leak in transform when changing transform modes within transform
...
(if you held down the R-key for example).
2013-02-11 02:06:19 +00:00
518bfbb1c9
style cleanup
2013-02-02 04:58:03 +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
2e154f7ce5
vertex slide was using flipped value, wasnt so noticable unless you types in a value.
2013-01-15 03:35:31 +00:00
e0388a881b
fix for own error with unwrap selection checking uvedit_have_selection() failed with no UV layer.
...
also add some safety checks for BM_ELEM_CD_GET_* macros.
2013-01-14 08:02:06 +00:00
5e9ee25328
style cleanup
2012-12-14 04:38:52 +00:00
0c3103ac85
Fix #33500 : when transforming, tapping shift twice and holding did not enable
...
precision mode. Not really the intended way to use this but it revealed a bug
in the event handling here.
2012-12-13 07:32:31 +00:00
869efe927c
style cleanup
2012-06-10 22:13:17 +00:00
d2a37d464a
code cleanup: double promotion warnings
2012-05-22 21:16:59 +00:00
3896ad4cbb
code cleanup: spelling
2012-05-20 21:23:26 +00:00
ed679693c9
style cleanup: whitespace/indentation
2012-05-19 13:55:54 +00:00
d20c129a9c
style cleanup: whitespace/operators
2012-05-09 09:24:15 +00:00
5da2135eef
code cleanup: double promotion & some style cleanup
2012-05-03 21:35:04 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
31d2ee9bf7
style cleanup, brackets in else/if, some indentation.
2012-03-06 18:40:15 +00:00
4344d84c02
Fix #29483 : edge slide gives nan when zoomed in close. Cause was integer
...
overflow leading to negative value for sqrt().
2011-12-03 13:16:32 +00:00
96d73bfdcf
replace VECCOPY with copy_v3_v3, same for 2d copy, also added vec copy functions for int & char.
2011-11-07 01:38:32 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
818c098004
comment own recent memory leak fix since it broke edge slide.
2011-10-13 14:32:45 +00:00
19b9329885
fix for leak when switching between transform rotation modes.
2011-10-13 04:44:39 +00:00
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
9f766c71b0
use event->mval rather then subtracting ar->winrct.x / y from event->x / y
2011-05-20 07:40:05 +00:00
5f5cdf9d00
for bug [ #27358 ] Transform bug when transform > 500
...
mouse coords would with cont. grab would wrap at short.
use mouse coords as int rather then short.
this problem still happens on linux because of XTranslateCoordinates
2011-05-12 16:47:36 +00:00
1093f69e50
Style Cleanup
...
- duplicate cases in if/else
- calc inside sizeof(...)
- redundant NULL checks.
- assignment to self.
- fix error getting text prefix for screen ID button.
2011-05-01 10:14:09 +00:00
284a0d3610
pass even mouse coords value as const so its not edited, view3d_get_view_aligned_coordinate() could modify the event->mval.
2011-04-21 17:25:58 +00:00
faf07c3e2b
transform: floats were being implicitly promoted to doubles, adjust to use floats.
...
also use macros RAD2DEGF & DEG2RADF.
2011-03-28 17:06:15 +00:00
da4023b655
fix [ #26598 ] zoom view and scaling odd vertices circle
2011-03-24 12:17:24 +00:00
Nathan Letwory
95100afc12
doxygen: blender/editors tagged.
2011-02-27 20:29:51 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
8b7482892b
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.
2011-02-14 17:55:27 +00:00
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
8268a4be71
most unused arg warnings corrected.
...
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating).
- mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16 14:32:17 +00:00
c1649dcf10
bugfix [ #23038 ] View rotation snap has left and right view names swapped arround.
...
also noticed some spelling errors.
2010-07-26 19:00:15 +00:00
44160c9747
Fix #20196 : division by zero in edge slide with two overlapping loops.
2010-07-21 15:22:11 +00:00
f743b583bf
more lint includes
...
Only source/blender/editors/ dir, should not give errors on different platforms
Only removing: UI_*.h, ED_*.h, WM_*.h, DNA_*.h, IMB_*.h, RNA_*.h, PIL_*.h
2010-03-23 14:09:09 +00:00
ad0e57a2a8
reproject - clamp image by the maximum texture size, remove debug printf.
2010-03-09 14:35:56 +00:00
70efb8d322
[ #21433 ] Angular rotation snap issue, final value set is not snapped - SVN 27250 and 2.50A1
...
Proper fix for this. Moving special mouse input stuff to custom callbacks (this also makes the per transform main functions a bit cleaner).
It also fixes the operator property (value) for shear and warp.
2010-03-09 01:19:32 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00