Commit Graph

2054 Commits

Author SHA1 Message Date
Campbell Barton 077cbaddf0 - remove unneeded len_v3v3 in bevel code
- remove dead assignments from vgroup-blend
2012-04-24 04:44:51 +00:00
Sergey Sharybin 9d40c3046b Fix #31072: Making texture single user was modifying textures of original material 2012-04-23 15:51:25 +00:00
Campbell Barton 6701933f5c style cleanup 2012-04-21 12:51:47 +00:00
Campbell Barton b26865ba99 code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
Campbell Barton 475ecbb0ce remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases). 2012-04-19 13:47:58 +00:00
Campbell Barton 75b869e428 style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER 2012-04-19 11:44:12 +00:00
Ove Murberg Henriksen c88c6886aa added function for copying weight to target vertex from closest source vertex 2012-04-19 00:09:20 +00:00
Ove Murberg Henriksen 0563ec03f5 Added mechanics for detecting and reacting on uneven indices. 2012-04-17 19:10:57 +00:00
Ove Murberg Henriksen 93f22cf012 svn merge ^/trunk/blender -r45364:HEAD --accept postpone 2012-04-12 16:01:24 +00:00
Campbell Barton 405c9d9a95 code cleanup: remove unused KeyBlock.adrcode 2012-04-12 11:50:43 +00:00
Campbell Barton 2a54ef0442 there was no way to reset timing for absolute shape keys, add an operator to do so. 2012-04-05 06:10:15 +00:00
Campbell Barton f4ccee2785 adding shape key blocks to absolute shape keys would not set the position (which is odd since its the only time they are used).
also re-sort the shape keys after adding them in for absolute keyblocks.
2012-04-05 05:51:26 +00:00
Campbell Barton 0aa6ade75a fix for error moving absolute shape keys up/down (their position would become out of order) 2012-04-05 05:38:52 +00:00
Ove Murberg Henriksen 244836b18d svn merge ^/trunk/blender -r44562:45364 2012-04-03 11:55:39 +00:00
Ove Murberg Henriksen 4fb535070e Removed: The uneccecary previously added code and added functions for "copy_to_selected_single.
Reason: less code and  consistensy with existing code.

Added fuction "ED_vgroup_copy_single" that forms the basis for the above.
2012-04-03 08:23:00 +00:00
Campbell Barton d37d17019c fix for vertex group blend - wasn't functional since the deform verts were being tken from a NULL array,
also made some other improvements
- make it work in weight paint vert sel mode (some unused code for this was in the function).
- add factor slider.
- add to weight paint toolbar.
2012-04-03 02:16:27 +00:00
Campbell Barton 5b88712ff9 move debug flag into its own global var (G.debug), split up debug options.
--debug
  --debug-ffmpeg
  --debug-python
  --debug-events
  --debug-wm

This makes debug output easier to read - event debug prints would flood output too much before.

For convenience:
  --debug-all turns all debug flags on (works as --debug did before).

also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
2012-03-31 00:59:17 +00:00
Nicholas Bishop 1652e459b6 Small fix for r45256, AKEY (de)selection not working.
Added call to BM_mesh_select_mode_flush on entering edit mode.
2012-03-29 23:14:09 +00:00
Campbell Barton a173508f49 converting a mesh to an undo mesh now skips using bmesh operator. 2012-03-29 03:06:42 +00:00
Campbell Barton 42076f0a1f skip using bmesh operators for converting to/from undo meshes (gives some speedup) 2012-03-29 01:41:56 +00:00
Campbell Barton 09f29c0b70 style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions 2012-03-27 04:46:52 +00:00
Campbell Barton ca05219f3e fix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.
problem was that BMesh had tessellation call when undo pushes were called.

if python called an operator with no undo push, tessfaces would not be created.

fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
2012-03-27 00:01:35 +00:00
Campbell Barton 6faeac9fe2 style cleanup: add braces around checks - 'if ELEM() {...}', confuses some parsers that done expand macros. 2012-03-25 22:35:18 +00:00
Campbell Barton b8a71efeba style cleanup: follow style guide for/with/if spacing 2012-03-24 07:52:14 +00:00
Campbell Barton ab4a2aaf4a style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 06:38:07 +00:00
Campbell Barton 2f348d8b5d style cleanup: mainly for mesh code, also some WM function use. 2012-03-24 02:51:46 +00:00
Campbell Barton 7ff77ed4ea code cleanup: use zero_v3 2012-03-23 20:18:09 +00:00
Campbell Barton 4c3bb77012 style cleanup: spaces aroudn operators for operator definitions. 2012-03-22 07:26:09 +00:00
Campbell Barton b482a0d4fc patch [#30602] Wiki Quick Hack: Apply Transformation To Lattices
from Justin Dailey (dail)
2012-03-20 23:09:28 +00:00
Nicholas Bishop e508c2d9e1 Add a multires function to delete MDisps.
The code was duplicated in various places, replaced with calls to
a new function, multires_customdata_delete().
2012-03-19 05:13:41 +00:00
Campbell Barton 4f19c1a995 spelling cleanup 2012-03-18 07:38:51 +00:00
Bastien Montagne 02abb636a3 UI messages: unification of select/deselect stuff.
Previously we had three versions, Select/Deselect, Select or Deselect, and (De)select, choosen the third (shortest) one for now.
2012-03-17 19:14:08 +00:00
Campbell Barton fa17b0a911 add select invert for lattice 2012-03-16 23:01:37 +00:00
Campbell Barton 1823bb4abb fix for building bmesh bevel with scons (source file was left out) 2012-03-16 05:25:02 +00:00
Ove Murberg Henriksen 0b8ae86e59 Added functionality: copy vertex group from source to targets.
Changed some comments to represent the code more accuratly.
2012-03-15 21:49:40 +00:00
Nicholas Bishop 7081abf51f Remove unused parameter from multires_dm_create_from_derived. 2012-03-15 04:08:57 +00:00
Sergey Sharybin a527e3ea25 Fix #30496: Bugs and crashes about "make links modifers" function.
Was missed check for if modifier is available for particular object type
which ended up with unpredictable results when modifier which isn't supported
yet for some object type as linked to that object type.
2012-03-12 14:35:07 +00:00
Nicholas Bishop 24b676e370 Remove the OBJECT_OT_test_multires operator.
Originated in r35213, appears to have been some test for multires in
BMesh.
2012-03-10 05:15:17 +00:00
Ove Murberg Henriksen 5087c5a618 Adjusted line number of funtions and implemented vertex group copy into them. 2012-03-10 00:09:57 +00:00
Campbell Barton a2e00c6230 disable object outline draw when painting (its distracting), also fix for own recent mistake in vgroup_blend(). - had bad check for editmesh. 2012-03-09 22:00:40 +00:00
Campbell Barton 4f7bdc59d3 style cleanup: spelling.
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
Campbell Barton 79d97ca509 style cleanup - spelling. 2012-03-08 04:12:11 +00:00
Campbell Barton 6029640bca Many vertex group functions assumed mesh object when lattices could be operated on too. 2012-03-08 01:49:25 +00:00
Campbell Barton 52db32bb53 fix for 2 crashes from missing NULL checks. 2012-03-08 00:23:28 +00:00
Campbell Barton 46045fbb09 style cleanup - braces & else / if's 2012-03-07 04:53:43 +00:00
Campbell Barton 31d2ee9bf7 style cleanup, brackets in else/if, some indentation. 2012-03-06 18:40:15 +00:00
Ove Murberg Henriksen fd9ea43c47 Requested commit. two wight paint buttons added, code calling functions and empty functions in place. 2012-03-04 15:03:59 +00:00
Campbell Barton f6ae27daef style cleanup - comment spelling + translate some dutch. 2012-03-04 04:35:12 +00:00
Campbell Barton a2c182e923 style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide). 2012-03-03 16:31:46 +00:00
Campbell Barton 7bbf4b7831 style cleanup
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-02 16:05:54 +00:00