diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-08-22 23:02:37 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-08-23 16:20:16 +0300 |
commit | 25c918196ce66eff4417d7d2e1d3da8c11d96735 (patch) | |
tree | 264b5da8b9b9c7624e0e6615f4bd7cceb8a22569 /source/blender/blenkernel/intern | |
parent | 2dafc39d566aa5c65b148cadf1129305ac1ceabc (diff) |
Fix T56500: Origin to geometry crashes on armature
Reviewers: sergey
https://developer.blender.org/D3639
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/object_update.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index 3641df26496..52e3d4a0803 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -302,14 +302,8 @@ void BKE_object_eval_uber_transform(Depsgraph *depsgraph, Object *object) BKE_object_eval_proxy_copy(depsgraph, object); } -void BKE_object_eval_uber_data(Depsgraph *depsgraph, - Scene *scene, - Object *ob) +void BKE_object_batch_cache_dirty(Object *ob) { - DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); - BLI_assert(ob->type != OB_ARMATURE); - BKE_object_handle_data_update(depsgraph, scene, ob); - switch (ob->type) { case OB_MESH: BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL); @@ -331,6 +325,16 @@ void BKE_object_eval_uber_data(Depsgraph *depsgraph, } } +void BKE_object_eval_uber_data(Depsgraph *depsgraph, + Scene *scene, + Object *ob) +{ + DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); + BLI_assert(ob->type != OB_ARMATURE); + BKE_object_handle_data_update(depsgraph, scene, ob); + BKE_object_batch_cache_dirty(ob); +} + void BKE_object_eval_cloth(Depsgraph *depsgraph, Scene *scene, Object *object) |