Commit Graph

8614 Commits

Author SHA1 Message Date
db173f6ef8 Minor API Edits.
added BM_mesh_elem_flag_enable_all (only had disable function), and add
argunt for vert/edge/face type.

use these functions from EDBM_flag_enable/disable_all (had duplicate
code).
2012-02-13 06:59:25 +00:00
7d18115e14 own error - mixup with BMO_slot_mat_get/set 2012-02-13 05:59:14 +00:00
cf0aeddfc9 marked navmesh as BMESH_TODO, mixed mface/mpoly functions were being used for navmesh too, now editing funcs use polygons only. 2012-02-13 04:52:41 +00:00
0f5e7e8518 heat weight
* use polygons for selection (was using tessface)
* ensure tessfaces are created
* mirroring was commented as BMESH_TODO, but api calls now work so add back.
2012-02-13 04:21:22 +00:00
2d1a05874b svn merge ^/trunk/blender -r44024:44076 2012-02-13 04:14:35 +00:00
399ad54204 fix for bug introduced with weight paint vertex selection.
heat weighting ignored selected faces.
2012-02-13 03:32:47 +00:00
7be1cd733d more bmesh minor api cleanup
* remove BMO_elem_flag_* functions, since there are already defines for this.
* ifdef unused bevel functions.
* rename defines BMOP_ --> BMO_OP_
2012-02-13 02:42:50 +00:00
9c2d3a8ed1 2.6 UI Modifier Icons:
* New Ocean Icon, created by Leon Cheung. Thanks! Approved by Lukas and myself.
* New Warp Icon, created by "Zafio"

Blender artists Thread where the Icons come from: http://blenderartists.org/forum/showthread.php?243354-Call-for-Modifier-Icons!
2012-02-12 19:57:47 +00:00
992087a0de api name conventions, more minor changes: flag set/clear --> enable/disable 2012-02-12 19:18:30 +00:00
59d45d0ea6 * remove the MFace parts of join (we only need polygon data)
* other minor cleanups
2012-02-12 19:11:09 +00:00
875f616ab8 Fix for outliner notifiers for inserting keyframes on visibility/selectivity/renderability
flags and toggling renderability from shortcut.
2012-02-12 18:57:05 +00:00
5b2ea6f8a4 remove bm_get_cd_float, use CustomData_bmesh_get instead, this function only casts to a float, and doesnt simplify args. 2012-02-12 18:49:56 +00:00
37ff2a291f BMesh api function naming.
`_set` suffix was used in two ways (confusing)
* to set a flag to be enabled.
* to set a value passed as an argument.

now use enable/disable rather then set/clear for functions which change flags.

also remove BME_weld.c, the file didnt contain much code and the current extrude works well
2012-02-12 18:43:59 +00:00
c34af2c9b1 Fix for bevel weights not being set in toolbar buttons (edit mode).
Code simply mimics crease one...
2012-02-12 18:17:30 +00:00
9a92cd8008 bmesh minor refactor
* add DM_to_bmesh_ex, DM_to_bmesh for converting a derived mesh to a BMesh (rather than a BMEditMesh)
* have a generic variable for allocsize: bm_mesh_allocsize_default, rather than copying the values about.
2012-02-12 17:44:10 +00:00
2fcb6d058e style cleanup for bmesh headers
- use consistant header guards
- correct doxy comments
- remove ED_toolmode.h (unused)
2012-02-12 14:40:08 +00:00
58475ba981 Fix #30110: Outliner view: restriction icons not updating when toggling from Groups view
Fixed by using proper button type.
2012-02-12 12:07:02 +00:00
3e134b65af Fix #30151: Allow Negative Frames does not affect arrow keys
Patch by Tobias Johansson, thanks!
2012-02-12 11:42:17 +00:00
6afa4da928 Fix #30152: Several drag and drop of image on mesh crashes
Issue was caused by making and loading editMesh in drop_named_image_invoke,
which lead to freeing/changing pointers used by CustomData layers. Some of
this pointers might be used by DerivedMesh, so we need to update DerivedMesh
after loading EditMesh.
2012-02-12 11:21:35 +00:00
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
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
24fc50907d Fix [#30136] Adding Sequence Plugin fails.
Problem was in how file selector is called by the effect_strip_add operator invoke. WM_operator_filesel() is not suited, as it directly calls exec if filepath is already set, and sequencer_generic_invoke_xy__internal() will set that path unless otherwise told. So using rather the same way to do as the one used by the other "strip_add" operators...
2012-02-11 16:08:45 +00:00
5e1f6f0174 fix for crash adding movie strips that were not a supported format. 2012-02-11 13:19:25 +00:00
dbea322b26 resetting the theme wasnt changign the panel header. 2012-02-11 12:16:34 +00:00
025b10f7f2 correct bad level include. 2012-02-11 10:56:07 +00:00
83a8f4c19e another include cleanup 2012-02-11 10:50:48 +00:00
1dc3536268 mode bmesh include cleanup, remove unused file too. 2012-02-11 10:15:11 +00:00
acd568d751 include cleanup 2012-02-11 08:46:56 +00:00
91390b712a GPL Header Cleanup 2012-02-11 04:16:17 +00:00
c1070b863b Style Cleanup 2012-02-10 18:09:19 +00:00
e25b59923b fix for smooth not working with mirror clip. 2012-02-10 15:25:12 +00:00
838abe1a8b Ykey is now separate again (as with trunk), use Jkey for Connecting verts. 2012-02-10 08:09:49 +00:00
953e50b9a5 fix [#30129] Sharp Edges select function inverted 2012-02-10 07:55:33 +00:00
2dda20a96e Style Edits only: use TRUE/FALSE rather then 1/0 2012-02-10 06:50:16 +00:00
3aeb7b3150 fix flushing issue when using linked selection picking in editmode.
- existing selections that should be un-effected would get incorrectly flushed
2012-02-10 06:26:16 +00:00
3453ec8fae reviewed selection flushing code, some of this was incorrect, checked all uses against trunk.
loop select also was incorrectly calling EDBM_select_flush() rather then EDBM_store_selection(), tsk tsk. (and strange nobody noticed this).
2012-02-10 06:16:21 +00:00
d7b8e7e9bc Code Cleanup: use less confusing names for selection flushing. 2012-02-10 03:03:42 +00:00
0e89e2d6fb add option to dissolve resulting verts with 2 edges after dissolving faces/edges.
in some cases you want these, but many times they end up neededing dissolving too.
2012-02-10 01:40:37 +00:00
4967e4f5b0 BMESH_TODO - Rewrite UV straighten tool for bmesh. (was commented out) 2012-02-09 03:13:29 +00:00
ac4484b239 svn merge ^/trunk/blender -r43976:43995 2012-02-09 01:53:14 +00:00
7f797d9c83 fix [#30103] Select vertex groups works only in vertex select mode
add selection flushing matching whats in trunk.
2012-02-08 14:29:14 +00:00
b228685e92 fix [#30101] Vertex colors disappear after leaving edit mode
this commit makes vertex paint check if it needs to rebuild the modifier stack when painting.
- when painting with no modifiers, do partial updates from polys to tessfaces while painting, skip re-tesselation.
- when painting onto a modified mesh, dont bother adjusting tessface colors - since the modifier stack will do this anyway.

both cases should be faster then before.
2012-02-08 11:52:44 +00:00
f0db5e8735 Fix for duplicated vertices in UV sphere when it's creating with large radius.
Issue was caused by not enough threshold limit used for removing doubles.
Switched to adoptive threshold value calculation based on smallest length
of segments in meridians and parallels.
2012-02-08 11:04:56 +00:00
65f454a160 Movie Clip Editor: manual calibration will now respect GP layer's hidden flag 2012-02-08 09:40:34 +00:00
a5eb673b4d use MPoly's rather then MFaces (since these don't necessarily exist) for drawing game engine bitmap font text.
minor edits to draw_tface_mapped__set_draw() to make it more efficient.
2012-02-08 09:07:24 +00:00
76ccd3d5ed Code Cleanup:
macro for copying polygon settings
2012-02-08 09:02:10 +00:00
32e0612bc3 Fix #30102: Vertex and edge incorrect selections
Select Linked operator was setting Limit by Seams property automatically
depending on current selection mode. But this property only used to be
set to truth if selection mode is set to Face, in other cases this property
is being reused from previous operator run. This leads to incorrect
behavior of selecting linked in vertex mode after this operator was
used in face selection mode.
2012-02-08 07:20:49 +00:00
19d0f93099 svn merge ^/trunk/blender -r43934:43976 2012-02-08 05:45:16 +00:00
051cf6abf8 Style Cleanup:
replace 0/1 with TRUE/FALSE define.
2012-02-07 17:42:46 +00:00
b49d257209 Fix #30076: RenderLayer area blocks mouse scrolling
In fact all list templates used to block mouse scroll. It's because mouse
scrolls list's scroll bar. But mouse scroll also used to be "eaten" even
if there's no scroll in list template.
This commit makes scroll even be ignored by list templates if there's
no scroll bar on list.
2012-02-07 16:53:14 +00:00