[Bf-blender-cvs] [1f8738a3984] master: Fix T59928: 'Radius' option does nothing when adding light probe
Jacques Lucke
noreply at git.blender.org
Mon Mar 11 15:37:06 CET 2019
Commit: 1f8738a39847165b0ec5ac494de91a734e02b878
Author: Jacques Lucke
Date: Mon Mar 11 15:35:30 2019 +0100
Branches: master
https://developer.blender.org/rB1f8738a39847165b0ec5ac494de91a734e02b878
Fix T59928: 'Radius' option does nothing when adding light probe
===================================================================
M source/blender/editors/object/object_add.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list