projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a58557
)
Code cleanup
author
Campbell Barton <ideasman42@gmail.com>
Fri, 18 Jul 2014 01:54:09 +0000
(11:54 +1000)
committer
Campbell Barton <ideasman42@gmail.com>
Fri, 18 Jul 2014 01:55:59 +0000
(11:55 +1000)
intern/rigidbody/rb_bullet_api.cpp
patch
|
blob
|
history
source/blender/blenkernel/intern/rigidbody.c
patch
|
blob
|
history
source/blender/bmesh/intern/bmesh_mods.c
patch
|
blob
|
history
source/blender/editors/object/object_vgroup.c
patch
|
blob
|
history
diff --git
a/intern/rigidbody/rb_bullet_api.cpp
b/intern/rigidbody/rb_bullet_api.cpp
index f3d159d67efea12bcf9cd85ae0e1eeb7f8722aec..17bb38179080fd6d6f8d8611604e70c3ee36096f 100644
(file)
--- a/
intern/rigidbody/rb_bullet_api.cpp
+++ b/
intern/rigidbody/rb_bullet_api.cpp
@@
-390,7
+390,7
@@
float RB_body_get_mass(rbRigidBody *object)
float value = (float)body->getInvMass();
if (value)
float value = (float)body->getInvMass();
if (value)
- value = 1.0 / value;
+ value = 1.0
f
/ value;
return value;
}
return value;
}
diff --git
a/source/blender/blenkernel/intern/rigidbody.c
b/source/blender/blenkernel/intern/rigidbody.c
index 8c7d6e906f09da4673cff412b77c9929ff93095b..98bcdfabad3a03c04e00118c665c604b70c570fe 100644
(file)
--- a/
source/blender/blenkernel/intern/rigidbody.c
+++ b/
source/blender/blenkernel/intern/rigidbody.c
@@
-471,7
+471,7
@@
void BKE_rigidbody_calc_volume(Object *ob, float *r_vol)
/* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot
/* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot
- * (i.e. Object pivot is centrali
s
ed in boundbox)
+ * (i.e. Object pivot is centrali
z
ed in boundbox)
* - boundbox gives full width
*/
// XXX: all dimensions are auto-determined now... later can add stored settings for this
* - boundbox gives full width
*/
// XXX: all dimensions are auto-determined now... later can add stored settings for this
@@
-567,7
+567,7
@@
void BKE_rigidbody_calc_center_of_mass(Object *ob, float r_com[3])
/* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot
/* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot
- * (i.e. Object pivot is centrali
s
ed in boundbox)
+ * (i.e. Object pivot is centrali
z
ed in boundbox)
* - boundbox gives full width
*/
// XXX: all dimensions are auto-determined now... later can add stored settings for this
* - boundbox gives full width
*/
// XXX: all dimensions are auto-determined now... later can add stored settings for this
diff --git
a/source/blender/bmesh/intern/bmesh_mods.c
b/source/blender/bmesh/intern/bmesh_mods.c
index c9e367d5f435552eea8d665d25bd13f4d1225ed1..43f33a9de0f39caf50bdeccb4680ef6ab3da314b 100644
(file)
--- a/
source/blender/bmesh/intern/bmesh_mods.c
+++ b/
source/blender/bmesh/intern/bmesh_mods.c
@@
-832,7
+832,7
@@
bool BM_face_split_edgenet(
BM_ELEM_API_FLAG_ENABLE(f_new, FACE_NET);
/* add new verts to keep finding loops for
BM_ELEM_API_FLAG_ENABLE(f_new, FACE_NET);
/* add new verts to keep finding loops for
- * (verts betwee
m
boundary and manifold edges) */
+ * (verts betwee
n
boundary and manifold edges) */
l_iter = l_first = BM_FACE_FIRST_LOOP(f_new);
l_prev_is_boundary = (bm_edge_flagged_radial_count(l_iter->prev->e) == 1);
do {
l_iter = l_first = BM_FACE_FIRST_LOOP(f_new);
l_prev_is_boundary = (bm_edge_flagged_radial_count(l_iter->prev->e) == 1);
do {
diff --git
a/source/blender/editors/object/object_vgroup.c
b/source/blender/editors/object/object_vgroup.c
index 04e05f1ee5e36974bda324904934d85593cc64b0..6897861c81c100bfe7bd7e6d3396e1191f8ea555 100644
(file)
--- a/
source/blender/editors/object/object_vgroup.c
+++ b/
source/blender/editors/object/object_vgroup.c
@@
-4376,8
+4376,8
@@
static int vertex_group_sort_exec(bContext *C, wmOperator *op)
name_array = vgroup_init_remap(ob);
/*sort vgroup names*/
name_array = vgroup_init_remap(ob);
/*sort vgroup names*/
- switch(sort_type) {
- case SORT_TYPE_NAME:
+ switch
(sort_type) {
+ case SORT_TYPE_NAME:
BLI_sortlist(&ob->defbase, vgroup_sort_name);
break;
case SORT_TYPE_BONEHIERARCHY:
BLI_sortlist(&ob->defbase, vgroup_sort_name);
break;
case SORT_TYPE_BONEHIERARCHY:
@@
-4401,9
+4401,9
@@
static int vertex_group_sort_exec(bContext *C, wmOperator *op)
void OBJECT_OT_vertex_group_sort(wmOperatorType *ot)
{
static EnumPropertyItem vgroup_sort_type[] = {
void OBJECT_OT_vertex_group_sort(wmOperatorType *ot)
{
static EnumPropertyItem vgroup_sort_type[] = {
-
{SORT_TYPE_NAME, "NAME", 0, "Name", ""},
-
{SORT_TYPE_BONEHIERARCHY, "BONE_HIERARCHY", 0, "Bone Hierarchy", ""},
-
{0, NULL, 0, NULL, NULL}
+ {SORT_TYPE_NAME, "NAME", 0, "Name", ""},
+ {SORT_TYPE_BONEHIERARCHY, "BONE_HIERARCHY", 0, "Bone Hierarchy", ""},
+ {0, NULL, 0, NULL, NULL}
};
ot->name = "Sort Vertex Groups";
};
ot->name = "Sort Vertex Groups";