Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "NodePlaneTrackDeformData", "char", "flag")) { | ||||
| data->motion_blur_shutter = 0.5f; | data->motion_blur_shutter = 0.5f; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| FOREACH_NODETREE_END | FOREACH_NODETREE_END | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(main, 273, 7)) { | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "bSteeringActuator", "float", "velzfactor")) { | |||||
sergey: No need to bump subversion yet. Just use `DNA_struct_elem_find` for until next bump is actually… | |||||
Not Done Inline ActionsOk. lordloki: Ok. | |||||
| Object *ob; | |||||
| 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->velzfactor = 1.0; | |||||
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 | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
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.