Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_rigidbody.c
| Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | static void rna_RigidBodyOb_shape_update(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| rna_RigidBodyOb_reset(bmain, scene, ptr); | rna_RigidBodyOb_reset(bmain, scene, ptr); | ||||
| DEG_relations_tag_update(bmain); | DEG_relations_tag_update(bmain); | ||||
| WM_main_add_notifier(NC_OBJECT | ND_DRAW, ob); | WM_main_add_notifier(NC_OBJECT | ND_DRAW, ob); | ||||
| } | } | ||||
| static void rna_RigidBodyOb_shape_reset(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr) | static void rna_RigidBodyOb_shape_reset(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| if (scene != NULL) { | |||||
| RigidBodyWorld *rbw = scene->rigidbody_world; | RigidBodyWorld *rbw = scene->rigidbody_world; | ||||
| RigidBodyOb *rbo = (RigidBodyOb *)ptr->data; | |||||
| BKE_rigidbody_cache_reset(rbw); | BKE_rigidbody_cache_reset(rbw); | ||||
| } | |||||
| RigidBodyOb *rbo = (RigidBodyOb *)ptr->data; | |||||
| if (rbo->shared->physics_shape) { | if (rbo->shared->physics_shape) { | ||||
| rbo->flag |= RBO_FLAG_NEEDS_RESHAPE; | rbo->flag |= RBO_FLAG_NEEDS_RESHAPE; | ||||
| } | } | ||||
| } | } | ||||
| static void rna_RigidBodyOb_mesh_source_update(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_RigidBodyOb_mesh_source_update(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| Object *ob = (Object *)ptr->owner_id; | Object *ob = (Object *)ptr->owner_id; | ||||
| ▲ Show 20 Lines • Show All 1,352 Lines • Show Last 20 Lines | |||||