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:
authorJacques Lucke <mail@jlucke.com>2019-03-11 17:35:30 +0300
committerJacques Lucke <mail@jlucke.com>2019-03-11 17:36:25 +0300
commit1f8738a39847165b0ec5ac494de91a734e02b878 (patch)
treecffb50b4995ed6dce13142053d3d31909f4b5218
parent422d4541f47559a1681a60c70bbcf7e1ad29d0e7 (diff)
Fix T59928: 'Radius' option does nothing when adding light probe
-rw-r--r--source/blender/editors/object/object_add.c2
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;