Code cleanup: comments and typos

This commit is contained in:
Campbell Barton 2014-03-18 02:40:39 +11:00
parent 7227117bed
commit ec4e12d9a2
9 changed files with 15 additions and 15 deletions

@ -49,7 +49,7 @@
* for output slots, for single-type geometry slots, use the type name plus "out",
* (e.g. verts.out), for double-type slots, use the two type names plus "out",
* (e.g. vertfaces.out), for three-type slots, use geom. note that you can also
* use more esohteric names (e.g. geom_skirt.out) so long as the comment next to the
* use more esoteric names (e.g. geom_skirt.out) so long as the comment next to the
* slot definition tells you what types of elements are in it.
*
*/

@ -761,7 +761,7 @@ static float visualkey_get_value(PointerRNA *ptr, PropertyRNA *prop, int array_i
int rotmode;
/* handle for Objects or PoseChannels only
* - only Location, Rotation or Scale keyframes are supported curently
* - only Location, Rotation or Scale keyframes are supported currently
* - constraints can be on either Objects or PoseChannels, so we only check if the
* ptr->type is RNA_Object or RNA_PoseBone, which are the RNA wrapping-info for
* those structs, allowing us to identify the owner of the data

@ -3659,7 +3659,7 @@ static int scene_new_exec(bContext *C, wmOperator *op)
else { /* different kinds of copying */
newscene = BKE_scene_copy(scene, type);
/* these can't be handled in blenkernel curently, so do them here */
/* these can't be handled in blenkernel currently, so do them here */
if (type == SCE_COPY_LINK_DATA) {
ED_object_single_users(bmain, newscene, false, true);
}

@ -1095,7 +1095,7 @@ static int walkApply(bContext *C, WalkInfo *walk)
}
/* the distance we would fall naturally smoothly enough that we
can manually drop the object without activating gravity */
* can manually drop the object without activating gravity */
fall_distance = time_redraw * walk->speed * WALK_BOOST_FACTOR;
if (fabsf(difference) < fall_distance) {

@ -26,7 +26,7 @@ vector_data = (
# get data at different scales
vector_data = sum(
(tuple(tuple(a * scale for a in v) for v in vector_data)
for scale in (s * sign for s in (0.0001, 0.1, -1.0, 10.0, 1000.0, 100000.0)
for scale in (s * sign for s in (0.0001, 0.1, 1.0, 10.0, 1000.0, 100000.0)
for sign in (1.0, -1.0))), ()) + ((0.0, 0.0, 0.0),)