Commit Graph

2054 Commits

Author SHA1 Message Date
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
Ove Murberg Henriksen 56ebb0b4a8 style cleanup fixed indents (I belive!?!) 2012-06-18 19:59:15 +00:00
Ove Murberg Henriksen 3253716183 Bugfix: no longer crashes when MDefomWeight is not fond on source. 2012-06-18 19:32:45 +00:00
Ove Murberg Henriksen 108d157254 Changed naming of "option" to "mode".
No longer using defvert_verify_index() but defvert_find_index().
Changing function created error wehn not found. Must be adressed.
2012-06-18 17:11:53 +00:00
Sergey Sharybin bdfcc5c619 Fix #31825: 3D View Editor Header > Object > Game > Copy Properties affecting other commands.
Mark property to be copied/moved as SKIP_SAVE. That was giving the issues.
2012-06-18 14:44:16 +00:00
Ove Murberg Henriksen 19daf84105 svn merge ^/trunk/blender -r48004:48011 2012-06-17 21:06:30 +00:00
Campbell Barton f5f25b81e8 style cleanup:
also fix for building ghost test and fix double free in one of the tests
2012-06-17 09:58:26 +00:00
Ove Murberg Henriksen bf3d0ca8da svn merge ^/trunk/blender -r47023:HEAD 2012-06-17 04:14:44 +00:00
Sergey Sharybin f0c724219d Internal refactoring of tracking module, should be no functional changes
- Re-arrange functions in headers and implementation file to make them
  more grouped by entity they're operating with. Also order of functions
  in implementation file should match order of functions in header for
  easier navigation.

- Rename some functions to match conventions of naming public functions.
- Some code de-duplication, still some room for improvements tho.
- Split main 2D tracking functions into smaller steps to make it more clear.

Accidentally OpenMP was disabled in some of previous commits, re-enable it.
2012-06-15 11:03:23 +00:00
Thomas Dinges 29e5f72395 Interface:
* Rename "Clear Game Property" to "Rename Game Properties", because the operator deletes all game properties from all selected object(s), not only one.

This fixes [#31828], patch by Philipp Oeser.
2012-06-14 14:02:15 +00:00
Thomas Dinges 201e9d815a Bugfix for [#31829] Add lamp icons missing. Patch by Philipp Oeser.
Note: If you do code cleanups, and revert make sure you revert it correct and not halfway. ;-) r47034
2012-06-14 13:54:55 +00:00
Ove Murberg Henriksen 9d32423f3e Bugfix: no longer crashes when dverts does not exist on source.
Added release for derivedmesh.
2012-06-11 22:58:49 +00:00
Ove Murberg Henriksen 995b9d5e8d style cleanup fixed naming 2012-06-11 20:32:34 +00:00
Ove Murberg Henriksen 340e156a2f Bugfix: No longer crashes when there is no dverts on target mesh from before. 2012-06-11 19:31:22 +00:00
Dan Eicher 02bcba341d OBJECT_OT_drop_named_material -- missing notifier for material panel UI update 2012-06-09 21:43:22 +00:00
Sergey Sharybin 909752a3da Fix #31752: Select All By Layer seems not to work when object belongs to several layers
Added option which changes match policy from exact match and shared layers when
selecting objects by layer.
2012-06-08 15:14:45 +00:00
Sergey Sharybin 87211a49ab Fix #31743: Applying Smooth modifier to a curve crashes Blender
Actually there were two different issues involved here:

- Recently enabled Smooth modifier wasn't actually designed for curves, so
  it in fact requires a bit bigger work to make it working.

  For now added check for object's typy in this modifier and if it's not
  mesh, it wouldn't try to use edges.

  The reason why it worked in 3d viewport is that creating DM from curve while
  displist is still ocntrcuting for would result in empty CDDM and that leads to
  not taking edges into account, only vertexCos passed to modifier would be used.

  This makes it behaving a bit differently from if it was a mesh, but still gives
  quite reasonable result. Would leave actual fix for a guy who enabled smooth
  modifier.

- Another issue is related on ensuring sculpt mask layer after applying modifier.
  This shall happen only for meshes.
2012-06-08 08:17:34 +00:00
Ove Murberg Henriksen 5414ea4701 Fixed naming from "single vertex group" to "active vertex group" 2012-06-06 23:21:45 +00:00
Campbell Barton 6cff0b71a7 style cleanup 2012-06-05 21:54:21 +00:00
Ove Murberg Henriksen 2548494bc1 Removed confusing error reporting code.
The confusing part was inconsitent reporting. 
It reported un eaven indices when only one source and a fail,
but not when several sources and some success and some fail.
2012-06-05 21:10:15 +00:00
Ove Murberg Henriksen 59d699805c Bugfix, no longer crashing wehn no source vertex group. 2012-06-05 20:48:01 +00:00
Ove Murberg Henriksen 51cbfba306 Now the feature is more intuitive. copying from selected to active. 2012-06-04 22:17:40 +00:00
Campbell Barton 68a9dd54ec mask mode for clip editor developed by Sergey Sharybin, Pete Larabell and myself.
see:
http://wiki.blender.org/index.php/User:Nazg-gul/MaskEditor


note - mask editing tools need continued development, feather option is not working 100%
2012-06-04 16:42:58 +00:00
Ove Murberg Henriksen cd346252d7 After reverting to binary tree, starting search at the top
by reseting nearest is marginally faster than using previous search.
2012-06-03 21:34:17 +00:00
Ove Murberg Henriksen 87c585c1ba Reverting to binary tree because related optimization with type 10 tree were bugged.
Now  feature completes in ~5 sec for a mesh with 300k vertices. but it works as intended.
2012-06-03 20:23:41 +00:00
Ove Murberg Henriksen c63dcaee07 small fix to mem release when using index method 2012-06-03 18:44:17 +00:00
Ove Murberg Henriksen 512b35754e Bugfix to bug from optimizing... 2012-06-03 17:16:50 +00:00
Ove Murberg Henriksen 7b29489016 BVHTree usage optimized for transferring between meshes of 300k faces.
Mesh were the shape of a human.
Optimizing for anything less would not make sense because it happens ~instant
 
moving to 10 tree from binary tree increased speed by ~30%
initiating additional searches with the first increased speed by ~99%

Now function completes in less than two seconds on my amd 2,6ghz
2012-06-03 16:44:48 +00:00
Joshua Leung 1ced356009 Action Group Colors for Bones (Part 2)
Colors used by Bone Groups are now copied/assigned to Action Groups too when
they're created now. This completes the work started in r.46960 to restore this
functionality from 2.48.

Currently, there is no control over when/whether these colors are copied over
(although it is possible to disable the display of these colors for relevant
animation editors if desired). Originally I was going to make this a more
generic Keying Sets feature, though that turned out to be a bit too complex to
manage.

Other notes:
* Split out the code for copying colors to a common library function
2012-06-01 13:54:44 +00:00
Ove Murberg Henriksen 0d42015671 Fixes to bugs that appeared during restructure. 2012-05-31 19:09:23 +00:00
Brecht Van Lommel c3a7db28d3 Fix #31657: adding mesh objects did not take units into account for the grid
scale that sets the default size.
2012-05-31 16:04:03 +00:00
Campbell Barton 47584648dc split up proportional editing keymap functions (adding this in tomato branch was messy) 2012-05-30 08:02:49 +00:00
Campbell Barton d4c7f2d53d clear active object when hiding unselected objects too. 2012-05-30 06:37:40 +00:00
Dan Eicher 52aad984b6 Outliner Drag & Drop fixes
OUTLINER_OT_parent_drop
 * use scene of child instead of active scene
 * poll to check if parent and child are in same scene

OUTLINER_OT_parent_clear
 * get scene from child instead of only working on active scene
 * poll to check if no parent

OUTLINER_OT_scene_drop && OBJECT_OT_make_links_scene
 * memory leak on error
 * would only link some objects on error
2012-05-29 18:12:13 +00:00
Dan Eicher e0c2ddb886 OUTLINER_OT_scene_drop -- "Drag object to scene in Outliner" operator
Refactored the two (well, three now) other places where an object is linked to a scene into ED_object_scene_link()
2012-05-29 08:20:11 +00:00
Ove Murberg Henriksen be4d30bf8e Bogus MEM_freeN removed and cleaned descriptions. 2012-05-27 18:05:10 +00:00
Ove Murberg Henriksen 1dce081e2b small cleaning 2012-05-27 17:47:21 +00:00
Ove Murberg Henriksen ea9655ce14 Fixed iterators.
Memory bugs persist...
2012-05-27 17:34:10 +00:00
Ove Murberg Henriksen bfd894b267 added mesh_get_derived_deform(scene, ob_act, CD_MASK_BAREMESH | CD_MASK_ORIGINDEX)
but now it crashes on:
a: <unavailable synchronous data> @0x9bc692c8
math_vector_inline.c 296
2012-05-27 15:57:43 +00:00
Ove Murberg Henriksen 89cc1b2e50 GUI added, but crashes becasuse: ob_act / ob_src ->DerivedDeform == 0x0 2012-05-27 14:17:01 +00:00
Campbell Barton 2ab62ce126 code cleanup: defines with braces - end with '(void)0' so callers must end with ';' like normal function.
... without this some editors dont parse the source so well.
2012-05-27 12:21:13 +00:00
Campbell Barton 857dedbc58 style cleanup 2012-05-27 00:36:50 +00:00
Campbell Barton 54b64cfd61 code cleanup: use const float and define array size 2012-05-26 22:21:56 +00:00
Nicholas Bishop ebdeed07e5 Delete skin customdata if all skin modifiers are removed.
Fix for bug [#31604] "Skin Modifier - Mark Root Bug?"

Essentially the same as multires customdata deletion.
2012-05-26 21:11:23 +00:00
Campbell Barton 6c41b326fe style cleanup 2012-05-26 15:48:55 +00:00
Ove Murberg Henriksen 25c7e8e128 bug fixes, review issue 6256058. 2012-05-26 15:27:21 +00:00
Campbell Barton b4a229c43a style edits 2012-05-26 14:31:34 +00:00
Campbell Barton 49b6867e0c previous commit didnt build - add back enum and note that its a copy because of linking error 2012-05-26 00:41:11 +00:00