diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-16 03:29:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-16 03:32:00 +0300 |
commit | 2f0d919f89cbed64965fa7c39d92419b0ef5bd9e (patch) | |
tree | cd762535e213626f57aef5cbc510ee0ecb67786a /source/blender | |
parent | 8fd3ffcb310ebf41537db10be3a0bfba6a859542 (diff) |
Add Object Tool: quiet warning setting size
The size property was only used for the cube
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_placement.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c index 8f070f1ec4c..638c61fc331 100644 --- a/source/blender/editors/space_view3d/view3d_placement.c +++ b/source/blender/editors/space_view3d/view3d_placement.c @@ -1354,7 +1354,9 @@ static int view3d_interactive_add_modal(bContext *C, wmOperator *op, const wmEve RNA_float_set_array(&op_props, "location", location); RNA_float_set_array(&op_props, "scale", scale); /* Always use default size here. */ - RNA_float_set(&op_props, "size", 2.0f); + if (ipd->primitive_type == PLACE_PRIMITIVE_TYPE_CUBE) { + RNA_float_set(&op_props, "size", 2.0f); + } WM_operator_name_call_ptr(C, ot, WM_OP_EXEC_DEFAULT, &op_props); WM_operator_properties_free(&op_props); } |