Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-07-15 11:05:24 +0400
committerJoshua Leung <aligorith@gmail.com>2007-07-15 11:05:24 +0400
commit38c84ba9386888315635648a2cb1b3a0c2ac1c87 (patch)
treedbe690dc0f51c6ba9839ee29c76486118978aebd /source/blender/src/editconstraint.c
parentbc9e6f97311877cfd3afb93457d6173bdeaf7cef (diff)
A few minor changes:
* Removed obsolete comments from constraints code * ChildOf constraint buttons: Set/Clear Inverse are now Set/Clear Offset. Hopefully that makes it a bit clearer for users.
Diffstat (limited to 'source/blender/src/editconstraint.c')
-rw-r--r--source/blender/src/editconstraint.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c
index 248b7196b8f..db1ee37405f 100644
--- a/source/blender/src/editconstraint.c
+++ b/source/blender/src/editconstraint.c
@@ -276,8 +276,8 @@ static void test_constraints (Object *owner, const char* substring)
/* Check parents */
/* Get the constraint list for this object */
- if (strlen (substring)){
- switch (owner->type){
+ if (strlen (substring)) {
+ switch (owner->type) {
case OB_ARMATURE:
type = TARGET_BONE;
break;
@@ -290,7 +290,7 @@ static void test_constraints (Object *owner, const char* substring)
type = TARGET_OBJECT;
- switch (type){
+ switch (type) {
case TARGET_OBJECT:
conlist = &owner->constraints;
break;
@@ -308,12 +308,12 @@ static void test_constraints (Object *owner, const char* substring)
break;
}
- /* Cycle constraints */
- if (conlist){
- for (curcon = conlist->first; curcon; curcon=curcon->next){
+ /* Check all constraints - is constraint valid? */
+ if (conlist) {
+ for (curcon = conlist->first; curcon; curcon=curcon->next) {
curcon->flag &= ~CONSTRAINT_DISABLE;
- switch (curcon->type){
+ switch (curcon->type) {
case CONSTRAINT_TYPE_PYTHON:
{
bPythonConstraint *data = curcon->data;
@@ -952,7 +952,7 @@ void validate_pyconstraint_cb(void *arg1, void *arg2)
int index = *((int *)arg2);
int i;
- /* innovative use of a for loop to search */
+ /* innovative use of a for...loop to search */
for (text=G.main->text.first, i=1; text && index!=i; i++, text=text->id.next);
data->text = text;
}