Sivu saatavilla vain englanninkielisenä.
MiikaHweb - Blender Git Statistics v1.06
Blender Git Statistics -> Developers -> slumber
swann (slumber)
Total Commits : 1
Master Commits : 1
Branch Commits : 0
First Commit : January 17, 2020
Latest Commit : January 17, 2020
Commits by Month
Date | Number of Commits | |
---|---|---|
January, 2020 | 1 |
Favourite Files
Filename | Total Edits |
---|---|
rna_object.c | 1 |
rna_main_api.c | 1 |
object_add.c | 1 |
object.c | 1 |
RNA_enum_types.h | 1 |
BKE_lightprobe.h | 1 |
lightprobe.c | 1 |
File Changes
Action | Total | Per Commit |
---|---|---|
Modified | 7 | 7.0 |
Code Changes
Action | Total | Per Commit |
---|---|---|
Lines Added | 48 | 48.0 |
Lines Removed | 21 | 21.0 |
Latest commits
January 17, 2020, 18:14 (GMT) |
Fix lightprobe creation from python data API ### Description of the problem Until now, it is only possible to correctly add a lightprobe in python via an operator: `bpy.ops.object.lightprobe_add()` ### Description of the proposed solution The idea of this patch is to fix the lack of consistency lightprobe creation without operator. It allow creation of different lightprobe type directly via `bpy.data.lightprobes.new(name, type)` (such as for curves). In order to make it possible I had to: 1. Add a function `BKE_lightprobe_configure` in charge of lightprobe settings configuration (avoid code redundancy) 2. Allow an object to take lightprobe datablock as data during is initialization. ### A short example of this patch usage ``` lp = bpy.data.lightprobes.new('some_name','PLANAR') bpy.data.objects.new('toto', lp) ``` Reviewed By: fclem Differential Revision: https://developer.blender.org/D6396 |
MiikaHweb - Blender Git Statistics v1.06