diff options
-rw-r--r-- | source/blender/makesrna/intern/rna_scene_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index 5a8c9646b0b..f25e093c8a9 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -66,6 +66,8 @@ const EnumPropertyItem rna_enum_abc_compression_items[] = { #include "BKE_scene.h" #include "BKE_writeavi.h" +#include "DEG_depsgraph_query.h" + #include "ED_transform.h" #include "ED_transform_snap_object_context.h" #include "ED_uvedit.h" @@ -185,6 +187,10 @@ static void rna_Scene_ray_cast( ED_transform_snap_object_context_destroy(sctx); + if (r_ob != NULL && *r_ob != NULL) { + *r_ob = DEG_get_original_object(*r_ob); + } + if (ret) { *r_success = true; } |