diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 18:05:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 18:05:51 +0300 |
commit | 6fc8a74886a30f89562bb542ef3b24cc64b3208a (patch) | |
tree | df0503b6cf4f6b762eca66b90f4360c495d624aa /source/blender/blenkernel/intern/lamp.c | |
parent | a262ea8c47f8106f66e16935c556f383ef306861 (diff) |
Cleanup: trailing space for blenkernel
Diffstat (limited to 'source/blender/blenkernel/intern/lamp.c')
-rw-r--r-- | source/blender/blenkernel/intern/lamp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/lamp.c b/source/blender/blenkernel/intern/lamp.c index 2714c4f43a1..3051bbdd7ed 100644 --- a/source/blender/blenkernel/intern/lamp.c +++ b/source/blender/blenkernel/intern/lamp.c @@ -100,7 +100,7 @@ void BKE_lamp_init(Lamp *la) la->sky_colorspace = BLI_XYZ_CIE; la->sky_exposure = 1.0f; la->shadow_frustum_size = 10.0f; - + curvemapping_initialize(la->curfalloff); } @@ -166,7 +166,7 @@ Lamp *BKE_lamp_localize(Lamp *la) Lamp *lan; int a; - + lan = BKE_libblock_copy_nolib(&la->id, false); for (a = 0; a < MAX_MTEX; a++) { @@ -175,12 +175,12 @@ Lamp *BKE_lamp_localize(Lamp *la) memcpy(lan->mtex[a], la->mtex[a], sizeof(MTex)); } } - + lan->curfalloff = curvemapping_copy(la->curfalloff); if (la->nodetree) lan->nodetree = ntreeLocalize(la->nodetree); - + lan->preview = NULL; return lan; @@ -198,7 +198,7 @@ void BKE_lamp_free(Lamp *la) for (a = 0; a < MAX_MTEX; a++) { MEM_SAFE_FREE(la->mtex[a]); } - + BKE_animdata_free((ID *)la, false); curvemapping_free(la->curfalloff); @@ -209,7 +209,7 @@ void BKE_lamp_free(Lamp *la) MEM_freeN(la->nodetree); la->nodetree = NULL; } - + BKE_previewimg_free(&la->preview); BKE_icon_id_delete(&la->id); la->id.icon_id = 0; @@ -224,7 +224,7 @@ static void lamp_node_drivers_update(Scene *scene, bNodeTree *ntree, float ctime /* nodetree itself */ if (ntree->adt && ntree->adt->drivers.first) BKE_animsys_evaluate_animdata(scene, &ntree->id, ntree->adt, ctime, ADT_RECALC_DRIVERS); - + /* nodes */ for (node = ntree->nodes.first; node; node = node->next) if (node->id && node->type == NODE_GROUP) @@ -240,11 +240,11 @@ void lamp_drivers_update(Scene *scene, Lamp *la, float ctime) return; la->id.tag |= LIB_TAG_DOIT; - + /* lamp itself */ if (la->adt && la->adt->drivers.first) BKE_animsys_evaluate_animdata(scene, &la->id, la->adt, ctime, ADT_RECALC_DRIVERS); - + /* nodes */ if (la->nodetree) lamp_node_drivers_update(scene, la->nodetree, ctime); |