Page Menu
Home
Search
Configure Global Search
Log In
Files
F2911
vertexgroup_name_flipping.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Joshua Leung (aligorith)
Nov 13 2013, 1:07 PM
Size
2 KB
Subscribers
None
vertexgroup_name_flipping.patch
View Options
Index: blender/include/BIF_editdeform.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/include/BIF_editdeform.h,v
retrieving revision 1.11
diff -u -r1.11 BIF_editdeform.h
--- blender/include/BIF_editdeform.h 3 Sep 2006 12:16:13 -0000 1.11
+++ blender/include/BIF_editdeform.h 30 Sep 2006 03:13:32 -0000
@@ -64,6 +64,8 @@
void vertexgroup_select_by_name(struct Object *ob, char *name);
+void vertexgroup_flip_names(struct Object *ob);
+
extern void object_apply_deform(struct Object *ob);
#endif
Index: blender/src/editdeform.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editdeform.c,v
retrieving revision 1.28
diff -u -r1.28 editdeform.c
--- blender/src/editdeform.c 3 Sep 2006 12:16:14 -0000 1.28
+++ blender/src/editdeform.c 30 Sep 2006 03:22:17 -0000
@@ -45,6 +45,7 @@
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
+#include "BKE_armature.h"
#include "BKE_DerivedMesh.h"
#include "BKE_depsgraph.h"
#include "BKE_deform.h"
@@ -705,6 +706,17 @@
}
}
ob->actdef=0; // this signals on painting to create a new one, if a bone in posemode is selected */
+}
+
+void vertexgroup_flip_names(Object *ob)
+{
+ bDeformGroup *curdef;
+
+ if (ob==NULL) return;
+
+ for (curdef= ob->defbase.first; curdef; curdef= curdef->next) {
+ bone_flip_name(curdef->name, 1);
+ }
}
Index: blender/src/editobject.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editobject.c,v
retrieving revision 1.322
diff -u -r1.322 editobject.c
--- blender/src/editobject.c 28 Sep 2006 01:55:43 -0000 1.322
+++ blender/src/editobject.c 30 Sep 2006 04:24:54 -0000
@@ -2147,7 +2147,7 @@
}
else if(G.obedit->type==OB_MESH) {
- nr= pupmenu("Specials%t|Subdivide%x1|Subdivide Multi%x2|Subdivide Multi Fractal%x3|Subdivide Smooth%x12|Merge%x4|Remove Doubles%x5|Hide%x6|Reveal%x7|Select Swap%x8|Flip Normals %x9|Smooth %x10|Bevel %x11|Set Smooth %x14|Set Solid %x15|Blend From Shape%x16|Propagate To All Shapes%x17|Select Vertex Path%x18");
+ nr= pupmenu("Specials%t|Subdivide%x1|Subdivide Multi%x2|Subdivide Multi Fractal%x3|Subdivide Smooth%x12|Merge%x4|Remove Doubles%x5|Hide%x6|Reveal%x7|Select Swap%x8|Flip Normals %x9|Smooth %x10|Bevel %x11|Set Smooth %x14|Set Solid %x15|Blend From Shape%x16|Propagate To All Shapes%x17|Select Vertex Path%x18|Flip Vertex Group Names%x19");
switch(nr) {
case 1:
@@ -2224,6 +2224,10 @@
case 18:
pathselect();
BIF_undo_push("Select Vertex Path");
+ break;
+ case 19:
+ vertexgroup_flip_names(G.obedit);
+ BIF_undo_push("Flip Vertex Group Names");
break;
}
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d4/bd/35237fe27cbb94173471955aa185
Event Timeline
Log In to Comment