diff options
Diffstat (limited to 'source/blender/editors')
-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); } |