Commit Graph

2054 Commits

Author SHA1 Message Date
Campbell Barton 6dcef66468 code cleanup: remove duplicate enum 2012-05-26 00:06:30 +00:00
Ove Murberg Henriksen 2c8a7ac756 svn merge ^/trunk/blender -r46930:HEAD 2012-05-25 17:52:51 +00:00
Brecht Van Lommel ad65b7b86b Animation playback: now all windows are update during playback, rather than
just the active window.
2012-05-25 12:37:11 +00:00
Nathan Vegdahl 19e1d05461 Modifications to the view3d.select() operator:
1. Two new boolean options have been added to the operator: "deselect"
   and "toggle".
2. The previous behavior of "extend" (toggling the selection) has
   been moved to the "toggle" option.
3. "extend" now only extends the selection, it never deselects.
4. "deselect" is pretty self-explanatory: it deselects (i.e. opposite
   of extend).
5. The built-in keymap has been changed to use "toggle" where
   "extend" was used before for this operator, to maintain the
   previous behavior in the default keymap.

In short, this works towards making "extend" and "deselect" fully
consistent across all selection tools (adding to and removing from
selection, respectively), but still preserves the old behavior
as well.

(Patch reviewed by Brecht.)
2012-05-24 21:05:27 +00:00
Ove Murberg Henriksen c2c2611faa Restructuring code.
All functions merged into ED_vgroup_transfer_weight() to avoid duplicate code.
2012-05-24 20:03:09 +00:00
Ove Murberg Henriksen 736daa9f04 svn merge ^/trunk/blender -r46844:HEAD 2012-05-23 10:56:06 +00:00
Ove Murberg Henriksen c4c75c33d0 Changed structure of the entire feature/code.
It should now work in 24 different ways depending on options.
Its not tested in depth yet...
2012-05-23 10:21:57 +00:00
Campbell Barton f16f545c6e style cleanup
also fix example for mesh uv's
2012-05-22 16:24:09 +00:00
Campbell Barton 3fc3c9f3b4 style cleanup: relating to skin modifier 2012-05-22 16:09:31 +00:00
Nicholas Bishop 45265b326a Add operator to extract armature and vertex groups from skin.
* The operator creates bones for each input edge (does not subdivide
  them like the skin operator does), adds a fake root bone for skin
  roots with multiple children.

* The operator adds vertex weight groups to the original mesh.

* Make copy_object_transform() public, used to match the armature
  object to the mesh object.

Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
2012-05-22 15:29:57 +00:00
Nicholas Bishop 11309a19e2 Add skin vertex operators.
* Add operator to mark selected vertices as skin roots.
* Add operator to mark/clear selected vertices as loose.
* Add operator to equalize skin radii.

Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
2012-05-22 15:29:44 +00:00
Nicholas Bishop 0cdd5892fa Ensure skin nodes get created when adding modifier.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
2012-05-22 15:29:37 +00:00
Sergey Sharybin acd468f2b3 Fix #31500: Displacement Baking from Multires doesn't work
Issue was caused by wrong calculation of grid coordinates when switching
from low resolution mesh to high resolution mesh. Somehow was affected only
for face U or V equals to 1.0f.

Checked fix using all test files used during initial implementation of
multires baker and tested sample file from bug/ Seems everything is OK.
2012-05-22 07:06:48 +00:00
Ove Murberg Henriksen 6913e6dd54 Changed functions to check for select on destination instead of source 2012-05-21 18:15:12 +00:00
Ove Murberg Henriksen cc5582decb Fixed SELECT comparisons 2012-05-21 17:39:56 +00:00
Ove Murberg Henriksen 79031d35f1 Added support for replace_selected_weights in all weight transfer fucntions. 2012-05-21 17:00:08 +00:00
Ove Murberg Henriksen 7d1cfe4dae svn merge ^/trunk/blender -r46750:HEAD 2012-05-21 15:14:32 +00:00
Campbell Barton 2d2d36fe3b code cleanup:
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
Campbell Barton 5d92564041 use utf8 functions for new modifier names 2012-05-20 18:19:45 +00:00
Antonis Ryakiotakis c464654f5e Fix memory leak when trying to apply transformations to shared meshes 2012-05-20 11:06:46 +00:00
Campbell Barton af3e348430 code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars. 2012-05-19 13:28:19 +00:00
Ove Murberg Henriksen 74a889d8b1 svn merge ^/trunk/blender -r46644:HEAD 2012-05-17 23:34:54 +00:00
Ove Murberg Henriksen 8521ca69fa removed:
OBJECT_OT_vertex_group_copy_to_selected_single()
plan for future to implement option as an argument in:
OBJECT_OT_vertex_group_copy_to_selected()
2012-05-17 12:36:07 +00:00
Ove Murberg Henriksen 044fd86a15 Some changes to structure as a response to review.
(I still havent adressed all issues.)
2012-05-17 12:15:39 +00:00
Joshua Leung f9043865a2 Disable setting non-object actions as the action used by the Action Constraint
(... I could've sworn there used to be some dynamic enums for filtering actions
by root type)
2012-05-17 10:28:30 +00:00
Ove Murberg Henriksen f4f5254100 cleanup: Style = adding spaces around operators. 2012-05-17 09:47:11 +00:00
Ove Murberg Henriksen daa4b41fb2 Fucntions adjusted to support options.
(still lacking feature for selected and option for all)
2012-05-17 08:10:19 +00:00
Ove Murberg Henriksen e7970575ef bugfix (using _all not _single as postfix for functions); 2012-05-17 03:18:47 +00:00
Ove Murberg Henriksen 506057c83b Fixed readabillity of options framework by adding enums. 2012-05-17 03:15:39 +00:00
Ove Murberg Henriksen 0978d1eb9d Added framework for transfer weight options.
vertex_group_transfer_weight_exec() governs all.
Functions renamed/added with _transfer_weight_
as opposed to _copy_by_ 
This is to reflect changes in parameters and usage as the internal code will change.
2012-05-17 01:42:06 +00:00
Campbell Barton 9dd981a440 style cleanup: block comments 2012-05-16 23:37:23 +00:00
Ove Murberg Henriksen f386587e27 Bugfix 2012-05-16 05:16:34 +00:00
Nicholas Bishop ed33320e3f Code cleanup: simplify standard GHash creation.
Added four new functions as shortcuts to creating GHashes that use the
standard ptr/str/int/pair hash and compare functions.

GHash *BLI_ghash_ptr_new(const char *info);
GHash *BLI_ghash_str_new(const char *info);
GHash *BLI_ghash_int_new(const char *info);
GHash *BLI_ghash_pair_new(const char *info);

Replaced almost all occurrences of BLI_ghash_new() with one of the
above functions.
2012-05-16 00:51:36 +00:00
Ove Murberg Henriksen 9af6397b2d Function for copying weights interpolated from faces complete!
ED_vgroup_copy_by_nearest_face_single()
2012-05-15 02:47:23 +00:00
Ove Murberg Henriksen 90759d4243 svn merge ^/trunk/blender -r46559:HEAD 2012-05-15 01:28:12 +00:00
Campbell Barton f964292630 fix geometry to origin in mesh editmode - was broken since bmesh merge. 2012-05-13 11:14:43 +00:00
Campbell Barton 305d341ec2 code cleanup: use vector math function minmax_v3v3_v3() and other minor vector function edits. 2012-05-13 11:05:52 +00:00
Ove Murberg Henriksen 9331b5e92f Projection onto face added for:
ED_vgroup_copy_by_nearest_face_single()
2012-05-13 08:16:41 +00:00
Ove Murberg Henriksen 55e627d01e Removed sqr_dist_v3v3()
Now using existing: len_squared_v3v3()
2012-05-13 05:57:32 +00:00
Ove Murberg Henriksen 4bee0a42dd Cleanup.
Basis changed/added for:
ED_vgroup_copy_by_nearest_face_single() 
Interpolation is still not working 100%
2012-05-13 05:33:25 +00:00
Ove Murberg Henriksen 4215071ace Complete working function added:
ED_vgroup_copy_by_nearest_vertex_in_face_single()
2012-05-13 03:46:46 +00:00
Ove Murberg Henriksen 7adeedfecc ED_vgroup_copy_by_nearest_face_single()
Math for interpolation of weights fixed to be consistent with reality... 
Still there is probably some indexing errors. 
Some vertices that should have blue weight, gets red. (on border faces)
2012-05-12 17:43:56 +00:00
Ove Murberg Henriksen b7f4ea118c obs! not thinking straight. Reverting bug from cleanup. 2012-05-12 03:50:44 +00:00
Ove Murberg Henriksen 66f4f3a9f5 some more cleanup 2012-05-12 03:32:13 +00:00
Ove Murberg Henriksen 097ebb0a63 ED_vgroup_copy_by_nearest_face_single()
excluded 4th vertex in faces for better result.
2012-05-12 02:13:26 +00:00
Ove Murberg Henriksen 8d7de250f3 Tiny bit of cleaning. 2012-05-12 01:04:12 +00:00
Ove Murberg Henriksen c40d445ef7 ED_vgroup_copy_by_nearest_face_single()
Is supposed to work, but something funny is going on. (logick error)
Function also needs optimization.
2012-05-12 00:37:45 +00:00
Ove Murberg Henriksen f95f3d9697 Incomplete ED_vgroup_copy_by_nearest_face_single() compiles. 2012-05-11 21:33:24 +00:00
Ove Murberg Henriksen 736c0ca6e0 svn merge ^/trunk/blender -r46463:HEAD 2012-05-11 19:26:43 +00:00
Campbell Barton ce17c35240 style cleanup: mainly sculpt/whitespace 2012-05-11 08:05:47 +00:00