diff options
author | Matt Ebb <matt@mke3.net> | 2009-12-28 07:09:46 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-12-28 07:09:46 +0300 |
commit | dbf295b904fb0bcb59656a57e32474b1f5adf77a (patch) | |
tree | e6923fff2baae73f1714fcf0a77b1ef03c71efa9 /source/blender/editors/include/ED_object.h | |
parent | 860e46082f24afdad9e40e15ac04d35f06924c10 (diff) |
Added location and rotation operator properties for adding objects. The Align to View boolean
is now just used to set the rotation property value during invoke.
This removes some reliance on 3d view info for non-interactive use, and also lets you specify
new object's locations/rotations explicitly when calling from Python.
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r-- | source/blender/editors/include/ED_object.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index 1b77d298e3a..0ba5c938377 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -79,11 +79,14 @@ void ED_object_toggle_modes(struct bContext *C, int mode); void ED_object_exit_editmode(struct bContext *C, int flag); void ED_object_enter_editmode(struct bContext *C, int flag); -void ED_object_base_init_from_view(struct bContext *C, struct Base *base, int view_align); +void ED_object_location_from_view(struct bContext *C, float *loc); +void ED_object_rotation_from_view(struct bContext *C, float *rot); +void ED_object_base_init_transform(struct bContext *C, struct Base *base, float *loc, float *rot); + void ED_object_add_generic_props(struct wmOperatorType *ot, int do_editmode); int ED_object_add_generic_invoke(struct bContext *C, struct wmOperator *op, struct wmEvent *event); -void ED_object_add_generic_get_opts(struct wmOperator *op, int *view_align, int *enter_editmode); -struct Object *ED_object_add_type(struct bContext *C, int type, int view_align, int enter_editmode); +void ED_object_add_generic_get_opts(struct wmOperator *op, float *loc, float *rot, int *enter_editmode); +struct Object *ED_object_add_type(struct bContext *C, int type, float *loc, float *rot, int enter_editmode); void ED_object_single_users(struct Scene *scene, int full); |