Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(124)

Issue 6301100: Weight paint transfer

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Cyborgmuppet
Modified:
14 years, 1 month ago
Reviewers:
ideasman42, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Weight paint transfer

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -3 lines) Patch
M release/scripts/startup/bl_ui/space_view3d_toolbar.py View 1 chunk +1 line, -0 lines 0 comments Download
M source/blender/editors/object/object_intern.h View 1 chunk +1 line, -0 lines 0 comments Download
M source/blender/editors/object/object_ops.c View 1 chunk +1 line, -0 lines 0 comments Download
M source/blender/editors/object/object_vgroup.c View 5 chunks +367 lines, -3 lines 6 comments Download

Messages

Total messages: 2
Cyborgmuppet
14 years, 1 month ago (2012-06-19 19:18:54 UTC) #1
ideasman42
14 years, 1 month ago (2012-07-04 14:15:34 UTC) #2
http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
File source/blender/editors/object/object_vgroup.c (right):

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:379: 
with all these enums - would give a common prefix, WTx for eg (weight transfer)
--- if this was in its own file it wouldn't really matter so much.

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:381: REPLACE_ACTIVE_VERTEX_GROUP =
1,
also common prefix would be good for enums.

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:434: break;
to ensure error cases dont go unnoticed you can:

default:
  BLI_assert(0);
  break;

.... this goes for all switches here.

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:549: if(dw_src && dw_src->weight)
{
is it possible that the 'dw_dst->weight' is NONZERO and it should be copied in
the case that dw_src->weight is 0? Looks like this is the case to me.

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:606: dw_dst =
defvert_verify_index(*dv_dst, index_dst);
is it possible that the 'dw_dst->weight' is NONZERO and it should be copied in
the case that dw_src->weight is 0? Looks like this is the case to me.

http://codereview.appspot.com/6301100/diff/1/source/blender/editors/object/ob...
source/blender/editors/object/object_vgroup.c:659: if(dw_src && dw_src->weight)
{
is it possible that the 'dw_dst->weight' is NONZERO and it should be copied in
the case that dw_src->weight is 0?

Looks like this is the case to me.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b