Commit Graph

313 Commits

Author SHA1 Message Date
Campbell Barton
1e3a2931ac fix [#33889] Unexpected weights after parenting with Empty Groups
out of range dvert's are now cleared before adding new-empty groups.
2013-01-22 10:51:57 +00:00
Bastien Montagne
b8116ed659 "Fix" for [#33903] Wrong description string in "remove vertices from vertex group" function - just making the tooltip describe both possible actions by this op! 2013-01-17 13:29:32 +00:00
Campbell Barton
7dca6dbf0b code cleanup:
make vertex/weight flag names consistent
ME_EDIT_VERT_SEL   --> ME_EDIT_PAINT_VERT_SEL
ME_EDIT_PAINT_MASK --> ME_EDIT_PAINT_FACE_SEL

also remove unused header BLO_soundfile.h
2012-12-22 14:25:34 +00:00
Campbell Barton
2a5cabb039 code cleanup and minor changes
- use DummyRNA_NULL_items to replace empty enums.
- replace calloc with malloc in copy_dverts since its copied over after.
- add wmGesture->userdata, so operators that use gestures have somewhere to store their own data (not used yet).
2012-12-22 01:08:42 +00:00
Campbell Barton
899ba3fdb6 style cleanup 2012-12-18 01:46:15 +00:00
Ove Murberg Henriksen
635099fdbc Reverting rev 53044 because it broke something and was wrong.
I also added comment to avoid this happening in the future.
2012-12-16 02:29:46 +00:00
Ove Murberg Henriksen
a837d9a896 Fixing name of a function to be consistent with the rest of the code. 2012-12-15 23:52:39 +00:00
Ove Murberg Henriksen
8ec289739e Changed some comments to make more sense. 2012-12-15 22:47:57 +00:00
Ove Murberg Henriksen
0ac1424264 Bugfix: [#33513] Transfer weights mixing up.
Removal of this line fixed the bug. 

But!

I suspect it opens up for an excaption.
I will try to identify the exception and handle it in a different way.
2012-12-15 20:32:32 +00:00
Ove Murberg Henriksen
114459e7f6 Pure style cleanup. 2012-12-15 19:56:25 +00:00
Sv. Lockal
dd2d54bae9 Use own list of actions for Vertex Group Lock operator instead of reusing Select All actions.
Previous actions and descriptions were confusing, e. g. UnLock All used the description of Deselect All.
2012-12-12 10:21:24 +00:00
Brecht Van Lommel
a2bf2ba7df Fix transfer weight tool enum properties all showing question mark icons,
these should have no icons.
2012-11-30 18:54:56 +00:00
Brecht Van Lommel
748216ad3d Fix #33296: uv editing did unnecessary outliner redraw, giving slowdown. 2012-11-25 06:55:39 +00:00
Campbell Barton
d94b2efbb9 disable applying constructive modifiers when in sculpt mode with multi-res data, since this would crash.
also rename modifier_sameTopology -> modifier_isSameTopology(), modifier_nonGeometrical -> modifier_isNonGeometrical()
2012-11-13 14:21:55 +00:00
Campbell Barton
140d382cee fix [#33143] Exporter crash since 2.64 2012-11-13 06:57:07 +00:00
Campbell Barton
a31449edad all remove functions now invalidate the RNA objects passed, to help script authors to avoid bugs with accessing removed data. 2012-11-02 09:41:26 +00:00
Campbell Barton
aeba4950c3 style cleanup 2012-10-27 10:42:28 +00:00
Bastien Montagne
c9dade4fe0 Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()... 2012-10-26 17:32:50 +00:00
Campbell Barton
0e494b74c4 style cleanup 2012-10-26 04:14:10 +00:00
Campbell Barton
fec81d9b56 use min_ max_ functions in more places.
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
2012-10-23 16:21:55 +00:00
Bastien Montagne
26d0492653 A final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf() fixes. 2012-10-21 14:02:30 +00:00
Campbell Barton
d599b643b7 style cleanup: bge, switch statements mostly.
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
Campbell Barton
c56a911cd9 style cleanup: comments 2012-10-20 20:20:02 +00:00
Bastien Montagne
b7f4c69ef7 More UI messages and BKE_reportf->BKE_report fixes... 2012-10-14 15:29:09 +00:00
Campbell Barton
67e2768570 quiet some -Wshadow warnings 2012-10-12 14:35:10 +00:00
Campbell Barton
57004cfb5a style cleanup:
also add helper makefile targets:
* tbz - makes a tar.bz2 of an svn export
* test_style_qtc - outputs style checks in qtc task format.
2012-10-10 23:44:07 +00:00
Ove Murberg Henriksen
495e3f3f36 Its silly to use "verify index" because it will add non existing and remove them afterwards. 2012-10-10 08:50:56 +00:00
Ove Murberg Henriksen
89969a07f0 Changing clear weight code from "assigning 0" to "removing".
Its less efficient but better practice.
+ Some style clean.
2012-10-10 08:29:13 +00:00
Campbell Barton
d81d75b20d transfer weight's now operates on selected vertices (when vertex select is enabled). 2012-10-09 22:55:05 +00:00
Campbell Barton
35504d627b style cleanup: also made functions static 2012-10-09 12:41:37 +00:00
Ove Murberg Henriksen
cb42de588d Adding weightpaint transfer tool.
From: https://svn.blender.org/svnroot/bf-blender/branches/meshdata_transfer

Bachelor project at Narvik university collage (Norway).
By Ove M Henriksen (Cyborgmuppet)
 
Thesis will be published at Cyborgmuppets blender page.

Thanks for letting me participate!
2012-10-09 12:25:10 +00:00
Ove Murberg Henriksen
ec689d650d Fix based on code review Issue 6347064 2012-10-09 11:29:29 +00:00
Campbell Barton
8730b390fb patch [#31919] limit the number of bone deform weights per vertex. Many game engines require a limit of 4.
from Kesten Broughton (kestion)


Usage: In weight paint mode, select the mesh to have its weights culled. Click on "Limit Weights" button. A sub-panel will appear "Limit Number of Vertex Weights" with a slider field "Limit" which you can set to the appropriate level. The default level is 4, and it gets executed upon pressing "Limit Weights" so you will need to do an "undo" if your max bone limit is above 4. The checkbox "All Deform Weights" will consider all vertex weights, not just bone deform weights.
2012-10-09 10:56:35 +00:00
Ove Murberg Henriksen
7247af6af5 svn merge ^/trunk/blender -r48592:HEAD 2012-10-09 10:53:20 +00:00
Campbell Barton
aa2d84da37 style cleanup:
also remove some redundant conversions int -> short -> int
2012-09-09 00:00:21 +00:00
Campbell Barton
99fcec3334 fix [#29431] "Normalize All" from Weight Tools don't work correctly 2012-09-05 04:16:09 +00:00
Campbell Barton
dbdd1bb4f2 remove vertex groups from a mesh or lattice when this there are no remaining vertex groups. This was dont in edit-mode but not object-mode. 2012-09-03 00:02:13 +00:00
Brecht Van Lommel
78c181fafc Fix part of #32376: mirror vertex groups with flip group names did not keep
the same vertex group active.
2012-08-31 13:43:56 +00:00
Campbell Barton
dd21def25d fixed [#32373] Copy Vertex Group operator copies any value as full 1.0 2012-08-21 15:57:59 +00:00
Campbell Barton
e9caa21830 fix own error in recent smoothview cleanup, also correct some cross references in bmesh docs. 2012-08-17 14:43:20 +00:00
Campbell Barton
62a73381a7 use fabsf when using floats. 2012-07-21 15:27:40 +00:00
Campbell Barton
84bf3e48c0 style cleanup: use c style comments in C code 2012-07-06 23:56:59 +00:00
Ove Murberg Henriksen
30085e5ea9 response to code review:
http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/object_vgroup.c
2012-07-04 16:30:12 +00:00
Ove Murberg Henriksen
370901890a Its now overwriting properly by clearing weights when using replace_mode all.
Reason for not going for suggested "else" on copy in each case is that it would present a paradox. 
(it would delete weights that got created in some instances)
2012-06-19 19:15:59 +00:00
Ove Murberg Henriksen
622ae0a1ca clenaup. 2012-06-19 18:26:55 +00:00
Ove Murberg Henriksen
51036b3186 Fixed better check for Mface.v4 2012-06-19 16:23:52 +00:00
Ove Murberg Henriksen
873b267029 cleanup for bwetter naming 2012-06-19 09:52:16 +00:00
Ove Murberg Henriksen
07aaf356f7 Error reporting added.
Note that when changing to optional methods that fails, it fails silently still.
Might have to adress this.
2012-06-19 02:23:31 +00:00
Ove Murberg Henriksen
32992cabe7 Bugfix to if statement always reporting true 2012-06-19 01:19:44 +00:00
Ove Murberg Henriksen
fcb650a154 Fixed loop instead of one liners for interpolate over face method mode. 2012-06-19 00:35:39 +00:00