Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1061
T68112 snippet
Active
Public
Actions
Authored by
Philipp Oeser (lichtwerk)
on Aug 2 2019, 11:27 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 137af917f9a..435cf7ebdb7 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -236,7 +236,7 @@ void ED_object_base_init_transform(bContext *C, Base *base, const float loc[3],
{
Object *ob = base->object;
Scene *scene = CTX_data_scene(C);
- Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C);
+ Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C);
if (!scene) {
return;
@@ -250,11 +250,7 @@ void ED_object_base_init_transform(bContext *C, Base *base, const float loc[3],
copy_v3_v3(ob->rot, rot);
}
- Scene *scene_eval = DEG_get_evaluated_scene(depsgraph);
- Object *object_eval = DEG_get_evaluated_object(depsgraph, ob);
- BKE_object_transform_copy(object_eval, ob);
- BKE_object_where_is_calc(depsgraph, scene_eval, object_eval);
- BKE_object_transform_copy(ob, object_eval);
+ BKE_object_where_is_calc(depsgraph, scene, ob);
}
/* Uses context to figure out transform for primitive.
Event Timeline
Philipp Oeser (lichtwerk)
created this paste.
Aug 2 2019, 11:27 AM
Philipp Oeser (lichtwerk)
mentioned this in
T68112: Align View is broken
.
Log In to Comment