diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-03-11 17:35:30 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-03-11 17:36:25 +0300 |
commit | 1f8738a39847165b0ec5ac494de91a734e02b878 (patch) | |
tree | cffb50b4995ed6dce13142053d3d31909f4b5218 /source/blender/editors/object | |
parent | 422d4541f47559a1681a60c70bbcf7e1ad29d0e7 (diff) |
Fix T59928: 'Radius' option does nothing when adding light probe
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 4a27e05815f..7fdbed062ac 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -503,7 +503,7 @@ static int lightprobe_add_exec(bContext *C, wmOperator *op) radius = RNA_float_get(op->ptr, "radius"); ob = ED_object_add_type(C, OB_LIGHTPROBE, get_lightprobe_defname(type), loc, rot, false, local_view_bits); - BKE_object_obdata_size_init(ob, radius); + copy_v3_fl(ob->scale, radius); probe = (LightProbe *)ob->data; probe->type = type; |