Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/crazyspace.c
| Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | |||||
| * Similar to #BKE_object_eval_reset(), but does not modify the actual evaluated object. | * Similar to #BKE_object_eval_reset(), but does not modify the actual evaluated object. | ||||
| */ | */ | ||||
| static void crazyspace_init_object_for_eval(struct Depsgraph *depsgraph, | static void crazyspace_init_object_for_eval(struct Depsgraph *depsgraph, | ||||
| Object *object, | Object *object, | ||||
| Object *object_crazy) | Object *object_crazy) | ||||
| { | { | ||||
| Object *object_eval = DEG_get_evaluated_object(depsgraph, object); | Object *object_eval = DEG_get_evaluated_object(depsgraph, object); | ||||
| *object_crazy = *object_eval; | *object_crazy = *object_eval; | ||||
| if (object_crazy->runtime.mesh_orig != NULL) { | if (object_crazy->runtime.data_orig != NULL) { | ||||
| object_crazy->data = object_crazy->runtime.mesh_orig; | object_crazy->data = object_crazy->runtime.data_orig; | ||||
| } | } | ||||
| } | } | ||||
| static void crazyspace_init_verts_and_matrices(const Mesh *mesh, | static void crazyspace_init_verts_and_matrices(const Mesh *mesh, | ||||
| float (**deformmats)[3][3], | float (**deformmats)[3][3], | ||||
| float (**deformcos)[3]) | float (**deformcos)[3]) | ||||
| { | { | ||||
| int num_verts; | int num_verts; | ||||
| ▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines | |||||