diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-16 19:22:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-16 19:22:43 +0300 |
commit | 49ee1a97d2704d8cc707201675a919b9ef103fec (patch) | |
tree | 17c78db252f4b24297490de623fe5f303cea181a /source | |
parent | 292a2802ad376f4a3a2cc7bed763d0f5856dd98c (diff) | |
parent | eb6fe5fa94b86a0a20742e06bf1e68b4cbaf6693 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/alembic/intern/abc_hair.cc | 5 | ||||
-rw-r--r-- | source/blender/alembic/intern/abc_object.cc | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/cloth.c | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/particle_distribute.c | 10 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 3 | ||||
-rw-r--r-- | source/blender/collada/AnimationImporter.cpp | 3 | ||||
-rw-r--r-- | source/blender/collada/EffectExporter.cpp | 13 | ||||
-rw-r--r-- | source/blender/editors/physics/particle_object.c | 16 |
8 files changed, 32 insertions, 24 deletions
diff --git a/source/blender/alembic/intern/abc_hair.cc b/source/blender/alembic/intern/abc_hair.cc index 2579aa3cc36..53e8dea89cc 100644 --- a/source/blender/alembic/intern/abc_hair.cc +++ b/source/blender/alembic/intern/abc_hair.cc @@ -253,8 +253,9 @@ void AbcHairWriter::write_hair_child_sample(DerivedMesh *dm, path = cache[p]; if (part->from == PART_FROM_FACE && - part->childtype != PART_CHILD_PARTICLES && - mtface) { + part->childtype != PART_CHILD_PARTICLES && + mtface) + { const int num = pc->num; if (num < 0) { ABC_LOG(m_settings.logger) diff --git a/source/blender/alembic/intern/abc_object.cc b/source/blender/alembic/intern/abc_object.cc index 98ebcf6debb..aa4e390fa71 100644 --- a/source/blender/alembic/intern/abc_object.cc +++ b/source/blender/alembic/intern/abc_object.cc @@ -291,7 +291,8 @@ Alembic::AbcGeom::IXform AbcObjectReader::xform() /* The archive's top object can be recognised by not having a parent. */ if (abc_parent.getParent() - && IXform::matches(abc_parent.getMetaData())) { + && IXform::matches(abc_parent.getMetaData())) + { return IXform(abc_parent, Alembic::AbcGeom::kWrapExisting); } diff --git a/source/blender/blenkernel/intern/cloth.c b/source/blender/blenkernel/intern/cloth.c index 339dcc4a62e..e928dfaab37 100644 --- a/source/blender/blenkernel/intern/cloth.c +++ b/source/blender/blenkernel/intern/cloth.c @@ -458,7 +458,8 @@ void clothModifier_do(ClothModifierData *clmd, const struct EvaluationContext *e cache_result = BKE_ptcache_read(&pid, (float)framenr+scene->r.subframe, can_simulate); if (cache_result == PTCACHE_READ_EXACT || cache_result == PTCACHE_READ_INTERPOLATED || - (!can_simulate && cache_result == PTCACHE_READ_OLD)) { + (!can_simulate && cache_result == PTCACHE_READ_OLD)) + { BKE_cloth_solver_set_positions(clmd); cloth_to_object (ob, clmd, vertexCos); diff --git a/source/blender/blenkernel/intern/particle_distribute.c b/source/blender/blenkernel/intern/particle_distribute.c index c261b0dc22c..452972c0ab2 100644 --- a/source/blender/blenkernel/intern/particle_distribute.c +++ b/source/blender/blenkernel/intern/particle_distribute.c @@ -240,10 +240,12 @@ static void distribute_grid(DerivedMesh *dm, ParticleSystem *psys) if (mface->v4 && (!intersects_tri || from==PART_FROM_VOLUME)) { copy_v3_v3(v4, mvert[mface->v4].co); - if (isect_ray_tri_watertight_v3(co1, - &isect_precalc, - v1, v3, v4, - &lambda, NULL)) { + if (isect_ray_tri_watertight_v3( + co1, + &isect_precalc, + v1, v3, v4, + &lambda, NULL)) + { if (from==PART_FROM_FACE) (pa+(int)(lambda*size[a])*a0mul)->flag &= ~PARS_UNEXIST; else diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index ebdc1b327d8..82efe66d8da 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -3699,7 +3699,8 @@ void sbObjectStep(const struct EvaluationContext *eval_ctx, Scene *scene, Object cache_result = BKE_ptcache_read(&pid, (float)framenr+scene->r.subframe, can_simulate); if (cache_result == PTCACHE_READ_EXACT || cache_result == PTCACHE_READ_INTERPOLATED || - (!can_simulate && cache_result == PTCACHE_READ_OLD)) { + (!can_simulate && cache_result == PTCACHE_READ_OLD)) + { softbody_to_object(ob, vertexCos, numVerts, sb->local); BKE_ptcache_validate(cache, framenr); diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index 8f162f589df..4ab6498af87 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -1753,7 +1753,8 @@ bool AnimationImporter::evaluate_animation(COLLADAFW::Transformation *tm, float if (type != COLLADAFW::Transformation::ROTATE && type != COLLADAFW::Transformation::SCALE && type != COLLADAFW::Transformation::TRANSLATE && - type != COLLADAFW::Transformation::MATRIX) { + type != COLLADAFW::Transformation::MATRIX) + { fprintf(stderr, "animation of transformation %d is not supported yet\n", type); return false; } diff --git a/source/blender/collada/EffectExporter.cpp b/source/blender/collada/EffectExporter.cpp index 5e2b00be82a..66f3f81f71f 100644 --- a/source/blender/collada/EffectExporter.cpp +++ b/source/blender/collada/EffectExporter.cpp @@ -123,12 +123,13 @@ void EffectsExporter::writePhong(COLLADASW::EffectProfile &ep, Material *ma) ep.setSpecular(cot, false, "specular"); } -void EffectsExporter::writeTextures(COLLADASW::EffectProfile &ep, - std::string &key, - COLLADASW::Sampler *sampler, - MTex *t, Image *ima, - std::string &uvname ) { - +void EffectsExporter::writeTextures( + COLLADASW::EffectProfile &ep, + std::string &key, + COLLADASW::Sampler *sampler, + MTex *t, Image *ima, + std::string &uvname ) +{ // Image not set for texture if (!ima) return; diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c index 1fae5b70aff..e87de1a6875 100644 --- a/source/blender/editors/physics/particle_object.c +++ b/source/blender/editors/physics/particle_object.c @@ -714,8 +714,8 @@ static bool remap_hair_emitter( for (i = 0, tpa = target_psys->particles, pa = psys->particles; i < target_psys->totpart; - i++, tpa++, pa++) { - + i++, tpa++, pa++) + { float from_co[3]; BVHTreeNearest nearest; @@ -1026,8 +1026,8 @@ static bool copy_particle_systems_to_object(const bContext *C, cdmask = 0; for (psys_from = PSYS_FROM_FIRST, i = 0; psys_from; - psys_from = PSYS_FROM_NEXT(psys_from), ++i) { - + psys_from = PSYS_FROM_NEXT(psys_from), ++i) + { psys = BKE_object_copy_particlesystem(psys_from, 0); tmp_psys[i] = psys; @@ -1047,8 +1047,8 @@ static bool copy_particle_systems_to_object(const bContext *C, /* now append psys to the object and make modifiers */ for (i = 0, psys_from = PSYS_FROM_FIRST; i < totpsys; - ++i, psys_from = PSYS_FROM_NEXT(psys_from)) { - + ++i, psys_from = PSYS_FROM_NEXT(psys_from)) + { ParticleSystemModifierData *psmd; psys = tmp_psys[i]; @@ -1086,8 +1086,8 @@ static bool copy_particle_systems_to_object(const bContext *C, */ for (psys = psys_start, psys_from = PSYS_FROM_FIRST, i = 0; psys; - psys = psys->next, psys_from = PSYS_FROM_NEXT(psys_from), ++i) { - + psys = psys->next, psys_from = PSYS_FROM_NEXT(psys_from), ++i) + { float (*from_mat)[4], (*to_mat)[4]; switch (space) { |