Campbell Barton
ed04c21374
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.
2012-02-28 14:05:00 +00:00
Campbell Barton
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
Campbell Barton
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
Campbell Barton
8b43813b69
rename BM_ flags for BMHeader->hflag to BM_ELEM_ to be more clear that these flags apply to bmesh elements.
2012-02-12 06:24:12 +00:00
Campbell Barton
705f23064e
svn merge ^/trunk/blender -r43294:43338
2012-01-13 01:39:57 +00:00
Campbell Barton
f66f33cefc
rename RNA_property_is_set() --> RNA_struct_property_is_set() in preperation to add a second version of the function which takes the property rather then its name.
2012-01-11 16:32:12 +00:00
Campbell Barton
f63e33303f
svn merge ^/trunk/blender -r42871:42882
2011-12-26 21:39:16 +00:00
Martin Poirier
8cc96408df
[ #29144 ] Snapping control points: can't choose which one to delete
...
Reported by Pep Ribal
You can now select which snap point to remove (with Alt-A) by moving the cursor over them.
Display colors are also used to indicate which snap points are active, selected or just there.
2011-12-26 20:23:07 +00:00
Martin Poirier
d8ab99c147
[ #29611 ] Crash when scale one vertex with snap.
...
Reported by Andrey Penyaz
Scale snap defaults to 1 when snapping is impossible (distance to center of transformation is zero).
2011-12-26 19:03:32 +00:00
Campbell Barton
4ced91da47
svn merge ^/trunk/blender -r42778:42839
2011-12-23 08:41:53 +00:00
Campbell Barton
51016c4dea
split >120 length lines (mostly if statements)
2011-12-22 00:03:20 +00:00
Campbell Barton
3c8d86e117
svn merge ^/trunk/blender -r41961:41998
2011-11-20 01:14:33 +00:00
Campbell Barton
14ddf19ad2
make it clearer which arguments in transform snap are return values (no functional change)
2011-11-19 00:52:54 +00:00
Campbell Barton
c00c0134e0
svn merge -r41847:41899 ^/trunk/blender
2011-11-16 03:10:15 +00:00
Campbell Barton
0c7a25cd0e
patch [ #28993 ] wm_window_match_do(): Fix crash on null pointer dereference
...
from Ola Jeppsson (olajep)
also some cleanup edits
2011-11-15 16:38:48 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
4a157de23d
svn merge ^/trunk/blender -r40587:40643
2011-09-28 07:34:48 +00:00
Campbell Barton
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
Campbell Barton
fddc655aec
svn merge -r40140:r40148 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-12 04:57:20 +00:00
Campbell Barton
4bd0a2ba2d
replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some parts of the code are copying float -> short normals without scaling. fix coming next.
2011-09-12 04:14:12 +00:00
Campbell Barton
73dde4e26f
svn merge -r38718:38804 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-29 02:03:53 +00:00
Campbell Barton
a5631dba89
only initialize snap from the scene settings for view3d and image spaces since snap in the 3D view was enabling snap in the graph editor and sequencer without a button to disable it in those spaces.
2011-07-28 02:15:58 +00:00
Campbell Barton
3b6cb504b1
minor warning fixes for clang-static-checker
2011-07-27 13:03:56 +00:00
Campbell Barton
46cea37266
fix [ #28066 ] Unchecking 'self project' messes up 'Snap to Vertex'
...
this option is useful for all non-grid snapping modes (when in editmode) so make available in those cases too.
2011-07-27 07:22:31 +00:00
Campbell Barton
ca293c835f
correct misc warnings
2011-07-26 13:33:04 +00:00
Campbell Barton
a7815053ef
svn merge -r37600:37700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
manually merged source/blender/editors/uvedit/uvedit_unwrap_ops.c
2011-07-25 12:59:54 +00:00
Campbell Barton
b709b52f46
svn merge -r37500:37600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-24 13:21:54 +00:00
Martin Poirier
8a335767d5
Snapping/Project
...
Disable editmesh as target if proportional edit is on (that was messed up incorrectly in revision 33233)
2011-06-21 15:28:13 +00:00
Campbell Barton
b306566a44
fix [ #25598 ] projection surface snap issue
...
Excuse the thrashing, this is from r35438, reverted r35444 under the _wrong_ impression Martin considered unacceptable.
2011-06-17 13:02:23 +00:00
Campbell Barton
671cb93f1b
svn merge -r36801:36840 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-24 04:35:21 +00:00
Campbell Barton
f5ec4cf4e9
fix own mistake [ #27451 ] Flip to Top / Flip to Bottom menuitems on right click on header not working
...
also get rig of more shadowed vars (-Wshadow).
2011-05-23 08:14:29 +00:00
Campbell Barton
e038b25579
view3d function naming, no functional changes.
2011-05-21 08:56:37 +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
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
b254960873
manually merged older changes from trunk.
2011-05-11 09:28:00 +00:00
Joseph Eagar
6ef77cf95a
=bmesh= merge from trunk at r36529
2011-05-08 23:43:18 +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
Joseph Eagar
c98148a963
=bmesh= merge from trunk at r36153
2011-04-15 01:19:13 +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
Campbell Barton
6a32442855
revert r35438, Martin doesn't like having this option tacked on.
2011-03-10 00:38:23 +00:00
Campbell Barton
1110c80696
add option requested [ #25598 ] projection surface snap issue
...
for retopo workflow you don't wan't to project the mesh onto its self, added option not to.
2011-03-09 22:45:34 +00:00
Nathan Letwory
95100afc12
doxygen: blender/editors tagged.
2011-02-27 20:29:51 +00:00
Joseph Eagar
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
Campbell Barton
43007d7fed
- fix python error for poselib UI when none is active.
...
- add info to create_dupli_objects rna function docstring.
- transform snap had bad define, disabling BVH accelerated snap (own fault).
2011-02-23 03:08:14 +00:00
Campbell Barton
1b25f48542
clear some unused warnings
2011-02-17 12:05:09 +00:00
Campbell Barton
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
Campbell Barton
7710d82007
fix [ #25926 ] lattice + projection on surface snap issue
2011-02-07 12:07:26 +00:00
Campbell Barton
8227b3d463
remove/comment unused vars
...
also removed unnecessary NULL checks (where the pointer was used later without checking).
2011-01-13 04:53:55 +00:00