Campbell Barton
d16da799fb
change transform to round at 0.5 for fcurves.
...
this gave noticeable issue when transforming int/fcurve's below zero.
2011-05-20 18:19:29 +00:00
Campbell Barton
88f4087a57
svn merge -r36725:36801 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-20 16:52:10 +00:00
Campbell Barton
363bfdc46a
use consistant arguments to ED_view3d_win_* funcs, a single float vector rather then 2 floats.
2011-05-20 13:50:41 +00:00
Campbell Barton
53d5761c94
function rename to give clearer meaning that they change from window to 3d coordinates.
...
some functions had vague names, I even ended up re-writing some of these functions by accident!
also added doxy comments.
* ED_view3d_win_to_3d (was window_to_3d)
* ED_view3d_win_to_delta (was window_to_3d_delta)
* ED_view3d_win_to_vector (was window_to_3d_vector / viewvector)
* ED_view3d_win_to_segment_clip (was viewline)
* ED_view3d_win_to_ray (was viewray)
2011-05-20 13:09:34 +00:00
Campbell Barton
9f766c71b0
use event->mval rather then subtracting ar->winrct.x / y from event->x / y
2011-05-20 07:40:05 +00:00
Campbell Barton
304ce06a5a
fix remaining crash from [ #27035 ] 3 problems: crash and enum "REGION" not found in ('VERTS')
2011-05-18 09:58:17 +00:00
Campbell Barton
5f32094bce
use ED_operator_screenactive rather then ED_operator_screenactive so transform works in background mode.
2011-05-18 08:36:06 +00:00
Campbell Barton
068c627013
remove unused vars
2011-05-13 13:17:30 +00:00
Campbell Barton
1d8fa52883
rename BMINDEX_GET/SET to BM_GetIndex/BM_SetIndex
2011-05-13 10:49:26 +00:00
Campbell Barton
6cc8f734c0
svn merge -r36603:36651 https://svn.blender.org/svnroot/bf-blender/trunk/blender \nwith some manual edits
2011-05-13 04:04:53 +00:00
Campbell Barton
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
Joseph Eagar
521d824371
=bmesh=
...
1. Removed pinning, at least until after trunk
reintegration (it's a usefull feature, but
incomplete).
2. Ripped out the subclassing code I originally
wrote so bmesh would be more usable for modifiers
(I ended up improving CDDM instead).
3. Inlined some of the macros in bmesh.h, still need to
do the macros in bmesh_operator_api.h.
4. Removed the BMESH_ITER_*** macros (except for BMESH_ITER_INDEX).
They were too clunkly to be worth it.
2011-05-12 01:55:08 +00:00
Campbell Barton
b254960873
manually merged older changes from trunk.
2011-05-11 09:28:00 +00:00
Joseph Eagar
422b24f2f2
=bmesh= fixed prop crasher and knifetool modal map typo
2011-05-09 22:05:07 +00:00
Joseph Eagar
7798666091
=bmesh=
...
added modal keymap for knife tool.
I'm not sure how to handle the panning
pass-through, it's still hardcoded to
happen on MIDDLEMOUSE.
2011-05-09 21:38:55 +00:00
Joseph Eagar
6acd2f1138
=bmesh= undo loopcut commit, for some reason the recent merge didn't catch it
2011-05-09 20:43:05 +00:00
Campbell Barton
5ba0c2c049
tag unused arguments, quiet some warnings
2011-05-09 14:32:55 +00:00
Campbell Barton
5776d7ff9c
svn merge -r36529:36564 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-09 09:38:48 +00:00
Joseph Eagar
6ef77cf95a
=bmesh= merge from trunk at r36529
2011-05-08 23:43:18 +00:00
Campbell Barton
d4e540dff3
comment some unused code.
2011-05-08 10:29:40 +00:00
Campbell Barton
fbe17e09a3
alternative to joe's commit r36451.
...
loopcut now follows 'Release confirms' user preference.
2011-05-04 20:42:34 +00:00
Joseph Eagar
f7ff502e77
=bmesh= fixed unintiialized memory bug, thanks to Francisco De La Cruz
2011-05-03 03:05:15 +00:00
Joseph Eagar
03734f5c58
=trunk=
...
Recommitted eltopo collision code (but disabled by default)
with Genscher's permission.
To use, you need to install liblapack and libblas
2011-05-03 01:48:15 +00:00
Campbell Barton
474fe33301
fix transform code using a node space as an image space, accessing unallocated memory.
...
also remove bullet patch which has now been applied.
2011-05-02 05:24:59 +00:00
Campbell Barton
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
Joseph Eagar
e0c83f2de9
=bmesh= made connected PET work better
2011-04-29 17:32:42 +00:00
Campbell Barton
3be303aa3e
corrections for redundant null checks & transform printing a string into its self.
2011-04-29 06:59:18 +00:00
Campbell Barton
1a7a623c56
fix [ #27057 ] In cam perspective, world-axis-locked xform of an obj at cam loc fails
...
when constraining the axis, ensure central point of the transformation is not too close to the view origin since this fails.
2011-04-29 05:01:50 +00:00
Joseph Eagar
e5d3923a61
edge slide works in ortho now
2011-04-24 07:45:24 +00:00
Joseph Eagar
023482722f
=bmesh= removed annoying preview thingy on edge ring select
2011-04-24 07:02:45 +00:00
Campbell Barton
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
Campbell Barton
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
Campbell Barton
210ee1ade4
whitespace only, no functional change mixed tabs/spaces --> tabs.
2011-04-21 13:11:51 +00:00
Joshua Leung
2e9982f420
Bugfix [ #27095 ] B-Bone doesn´t resize correctly with numeric input
...
B-Bone resizing was acting more like translation than resizing when using numeric input. Added the flag to set all xyz values to same value when using numeric input
2011-04-21 12:48:07 +00:00
Campbell Barton
0da889dff5
while looking into [ #27057 ] noticed when the view and the transform center are 0,0,0 it gives NAN values.
2011-04-20 09:46:45 +00:00
Campbell Barton
ba229e3859
fix [ #27011 ] executing a script crashes Blender
2011-04-19 04:19:09 +00:00
Joseph Eagar
0e9ce1b40d
=bmesh= odd bug, sometimes edge slide would result in invalid derivedmesh. I had to put a recalcData() call into edge slide's free function. not sure why edge slide but not other transform tools are acting up.
2011-04-17 04:12:53 +00:00
Joseph Eagar
a354b148b5
=bmesh= connected PET now works, for the most part
2011-04-15 07:08:36 +00:00
Joseph Eagar
798e0b02c0
=bmesh= modifiers can now be applied with shapekeys
2011-04-15 05:20:18 +00:00
Joseph Eagar
005b37643d
fixed idling problem
2011-04-15 02:13:37 +00:00
Joseph Eagar
c98148a963
=bmesh= merge from trunk at r36153
2011-04-15 01:19:13 +00:00
Joseph Eagar
0bba684d08
=bmesh= fixed a few bugs in the uv editor
2011-04-13 22:30:25 +00:00
Joseph Eagar
1c56255ca7
=bmesh=
...
Edge slide now handles facedata (e.g. sliding within uv
space), including multires.
2011-04-13 21:48:16 +00:00
Lukas Toenne
50969c24a6
Minor bugfix in initTransInfo: SpaceImage used even if space type is SPACE_NODE.
2011-04-08 12:02:30 +00:00
Campbell Barton
5c7bed92d4
fix for cmake glew includes (tested with mingw), also made qtcreator project generator work with mingw again
2011-04-06 03:02:40 +00:00
Joshua Leung
bbf82877cf
Bugfix [ #26792 ] blender crash when scaling action strip in NLA
...
Two part bug:
Part 1) NLA Editor menu was calling wrong operator
Part 2) r35829 broke NLA scaling, since it only checked that the
transform mode used was allowed in the Action Editor (probably
confused by Part 1)
2011-04-05 11:04:00 +00:00
Campbell Barton
5c8234c81c
replace while loops with angle_wrap_rad()
2011-04-03 05:29:58 +00:00
Campbell Barton
6d3546069c
fix [ #26713 ] Video Sequencer: Audio mute after making meta strip copy/paste
...
was not recursively restoring sound strips on paste.
also found many duplicate functions were defining the transform mode as in int but getting as an enum, use enum for both now.
2011-04-01 08:51:12 +00:00
Campbell Barton
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
Martin Poirier
84befe2056
[ #26622 ] Blender crashes when calling transform operator
...
Add cancellation checks for time* transforms that only run in specific spaces.
Hide Transform Mode operator property (it shouldn't be modified after the operator is run), made default mode Translate, not the useless Dummy.
2011-03-27 22:15:37 +00:00