Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-08-02 16:13:59 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-08-02 16:15:41 +0300
commitab3de09591c74fe43b6f3f81bfc666a7beb9cc70 (patch)
tree44eb81f099b415ddaa3916e783260ebfdaf5a470 /source/blender/editors/include/ED_object.h
parent5cf6d7e2b0af67e29e52a0b8649129f31cb20e53 (diff)
Fix T68112: Align View on object add is broken
No need to use BKE_object_where_is_calc() in this case: there is no parenting or constraint system involved on object add. So simply use direct object matrix calculation from it's local transform. No need in dependency graph either in this case.
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r--source/blender/editors/include/ED_object.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index 3a74bdc59ff..7b9a96e4d07 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -197,10 +197,9 @@ void ED_object_sculptmode_exit(struct bContext *C, struct Depsgraph *depsgraph);
void ED_object_location_from_view(struct bContext *C, float loc[3]);
void ED_object_rotation_from_quat(float rot[3], const float quat[4], const char align_axis);
void ED_object_rotation_from_view(struct bContext *C, float rot[3], const char align_axis);
-void ED_object_base_init_transform(struct bContext *C,
- struct Base *base,
- const float loc[3],
- const float rot[3]);
+void ED_object_base_init_transform_on_add(struct Object *obejct,
+ const float loc[3],
+ const float rot[3]);
float ED_object_new_primitive_matrix(struct bContext *C,
struct Object *editob,
const float loc[3],