Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 1,082 Lines • ▼ Show 20 Lines | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| /* Update motion paths once for all transformed bones in an object. */ | /* Update motion paths once for all transformed bones in an object. */ | ||||
| GSetIterator gs_iter; | GSetIterator gs_iter; | ||||
| GSET_ITER (gs_iter, motionpath_updates) { | GSET_ITER (gs_iter, motionpath_updates) { | ||||
| Object *ob = BLI_gsetIterator_getKey(&gs_iter); | Object *ob = BLI_gsetIterator_getKey(&gs_iter); | ||||
| ED_pose_recalculate_paths(t->context, t->scene, ob, true); | ED_pose_recalculate_paths(t->context, t->scene, ob, POSE_PATH_CALC_RANGE_CURRENT_FRAME); | ||||
| } | } | ||||
| BLI_gset_free(motionpath_updates, NULL); | BLI_gset_free(motionpath_updates, NULL); | ||||
| } | } | ||||
| else if (base && (base->object->mode & OB_MODE_PARTICLE_EDIT) && | else if (base && (base->object->mode & OB_MODE_PARTICLE_EDIT) && | ||||
| PE_get_current(t->scene, base->object)) { | PE_get_current(t->scene, base->object)) { | ||||
| if (t->state != TRANS_CANCEL) { | if (t->state != TRANS_CANCEL) { | ||||
| applyProject(t); | applyProject(t); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| if (t->flag & T_TEXTURE) { | if (t->flag & T_TEXTURE) { | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (motionpath_update) { | if (motionpath_update) { | ||||
| /* Update motion paths once for all transformed objects. */ | /* Update motion paths once for all transformed objects. */ | ||||
| ED_objects_recalculate_paths(t->context, t->scene, true); | ED_objects_recalculate_paths(t->context, t->scene, OBJECT_PATH_CALC_RANGE_CHANGED); | ||||
| } | } | ||||
| if (t->options & CTX_OBMODE_XFORM_SKIP_CHILDREN) { | if (t->options & CTX_OBMODE_XFORM_SKIP_CHILDREN) { | ||||
| trans_obchild_in_obmode_update_all(t); | trans_obchild_in_obmode_update_all(t); | ||||
| } | } | ||||
| if (t->options & CTX_OBMODE_XFORM_OBDATA) { | if (t->options & CTX_OBMODE_XFORM_OBDATA) { | ||||
| trans_obdata_in_obmode_update_all(t); | trans_obdata_in_obmode_update_all(t); | ||||
| ▲ Show 20 Lines • Show All 1,408 Lines • Show Last 20 Lines | |||||