Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 610 Lines • ▼ Show 20 Lines | for (ob = main->object.first; ob != NULL; ob = ob->id.next) { | ||||
| for (md = ob->modifiers.last; md != NULL; md = md->prev) { | for (md = ob->modifiers.last; md != NULL; md = md->prev) { | ||||
| if (modifier_unique_name(&ob->modifiers, md)) { | if (modifier_unique_name(&ob->modifiers, md)) { | ||||
| printf("Warning: Object '%s' had several modifiers with the " | printf("Warning: Object '%s' had several modifiers with the " | ||||
| "same name, renamed one of them to '%s'.\n", | "same name, renamed one of them to '%s'.\n", | ||||
| ob->id.name + 2, md->name); | ob->id.name + 2, md->name); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "bSteeringActuator", "float", "acceleration")) { | |||||
| for (ob = main->object.first; ob; ob = ob->id.next) { | |||||
| bActuator *act; | |||||
| for (act = ob->actuators.first; act; act = act->next) { | |||||
| if (act->type == ACT_STEERING) { | |||||
| bSteeringActuator *sact = act->data; | |||||
| sact->acceleration = 1000.f; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
sergey: No need to bump subversion yet. Just use `DNA_struct_elem_find` for until next bump is actually… | |||||
Not Done Inline Actionsif this flag is new, why does it need to be cleared? campbellbarton: if this flag is new, why does it need to be cleared? | |||||
Not Done Inline ActionsIt is not need to be cleared. I just removed lordloki: It is not need to be cleared. I just removed | |||||
Not Done Inline ActionsOk. lordloki: Ok. | |||||
No need to bump subversion yet. Just use DNA_struct_elem_find for until next bump is actually needed.
P.S. Rule of thumb is: subversion bump is only done when major changes to DNA are made.