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:
authorCampbell Barton <ideasman42@gmail.com>2019-06-04 03:51:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-04 03:52:20 +0300
commitc13e10a7404ddae1d2ab9dc3d421ad18e8cb01ac (patch)
tree8906f96fd20a8fe5bd7b973db13fc5dcd663634a /source/blender/collada
parentd62a749fcf4848958d748a4d5ef5c4f1172cd351 (diff)
Cleanup: clang-format, remove tabs
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/AnimationImporter.cpp4
-rw-r--r--source/blender/collada/AnimationImporter.h5
-rw-r--r--source/blender/collada/ArmatureImporter.cpp2
-rw-r--r--source/blender/collada/BCAnimationCurve.cpp8
-rw-r--r--source/blender/collada/BCAnimationCurve.h2
-rw-r--r--source/blender/collada/BCMath.h1
-rw-r--r--source/blender/collada/BCSampleData.cpp2
-rw-r--r--source/blender/collada/ControllerExporter.cpp2
-rw-r--r--source/blender/collada/collada_utils.cpp1
9 files changed, 13 insertions, 14 deletions
diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp
index ef6c81efff7..be748110fb9 100644
--- a/source/blender/collada/AnimationImporter.cpp
+++ b/source/blender/collada/AnimationImporter.cpp
@@ -1376,7 +1376,7 @@ void AnimationImporter::add_bone_animation_sampled(Object *ob,
for (int i = 0; i < totcu; i++) {
if (i < 4) {
add_bezt(newcu[i], fra, qref.quat()[i]);
- }
+ }
else if (i < 7) {
add_bezt(newcu[i], fra, loc[i - 4]);
}
@@ -1842,7 +1842,7 @@ Object *AnimationImporter::translate_animation_OLD(
if (is_rotation || is_matrix) {
if (is_joint) {
bPoseChannel *chan = BKE_pose_channel_find_name(ob->pose, bone_name);
- chan->rotmode = (is_matrix)? ROT_MODE_QUAT : ROT_MODE_EUL;
+ chan->rotmode = (is_matrix) ? ROT_MODE_QUAT : ROT_MODE_EUL;
}
else {
ob->rotmode = (is_matrix) ? ROT_MODE_QUAT : ROT_MODE_EUL;
diff --git a/source/blender/collada/AnimationImporter.h b/source/blender/collada/AnimationImporter.h
index c62ffdbafd3..0043dad7116 100644
--- a/source/blender/collada/AnimationImporter.h
+++ b/source/blender/collada/AnimationImporter.h
@@ -195,7 +195,10 @@ class AnimationImporter : private TransformReader, public AnimationImporterBase
int setAnimType(const COLLADAFW::Animatable *prop, int type, int addition);
- void modify_fcurve(std::vector<FCurve *> *curves, const char *rna_path, int array_index, int scale=1);
+ void modify_fcurve(std::vector<FCurve *> *curves,
+ const char *rna_path,
+ int array_index,
+ int scale = 1);
void unused_fcurve(std::vector<FCurve *> *curves);
// prerequisites:
// animlist_map - map animlist id -> animlist
diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp
index de8b8aab93c..e79a97c890f 100644
--- a/source/blender/collada/ArmatureImporter.cpp
+++ b/source/blender/collada/ArmatureImporter.cpp
@@ -523,7 +523,7 @@ void ArmatureImporter::create_armature_bones(Main *bmain, std::vector<Object *>
ED_armature_from_edit(bmain, armature);
ED_armature_edit_free(armature);
- set_bone_transformation_type(node, ob_arm);
+ set_bone_transformation_type(node, ob_arm);
int index = std::find(ob_arms.begin(), ob_arms.end(), ob_arm) - ob_arms.begin();
if (index == 0) {
diff --git a/source/blender/collada/BCAnimationCurve.cpp b/source/blender/collada/BCAnimationCurve.cpp
index 2295821aaf8..1ea63508965 100644
--- a/source/blender/collada/BCAnimationCurve.cpp
+++ b/source/blender/collada/BCAnimationCurve.cpp
@@ -174,7 +174,7 @@ const std::string BCAnimationCurve::get_animation_name(Object *ob) const
}
else {
const char *boneName = BLI_str_quoted_substrN(fcurve->rna_path, "pose.bones[");
- name = (boneName) ? id_name(ob)+"_"+std::string(boneName) : "";
+ name = (boneName) ? id_name(ob) + "_" + std::string(boneName) : "";
}
} break;
@@ -338,10 +338,8 @@ const bool BCAnimationCurve::is_transform_curve() const
const bool BCAnimationCurve::is_rotation_curve() const
{
std::string channel_type = this->get_channel_type();
- return (channel_type == "rotation"
- || channel_type == "rotation_euler"
- || channel_type == "rotation_quaternion"
- );
+ return (channel_type == "rotation" || channel_type == "rotation_euler" ||
+ channel_type == "rotation_quaternion");
}
const float BCAnimationCurve::get_value(const float frame)
diff --git a/source/blender/collada/BCAnimationCurve.h b/source/blender/collada/BCAnimationCurve.h
index 1b97ea4a0ba..33533258dc2 100644
--- a/source/blender/collada/BCAnimationCurve.h
+++ b/source/blender/collada/BCAnimationCurve.h
@@ -120,7 +120,7 @@ class BCAnimationCurve {
const std::string get_animation_name(Object *ob) const; /* xxx: this is collada specific */
const std::string get_channel_target() const;
const std::string get_channel_type() const;
- const std::string get_channel_posebone() const; // returns "" if channel is not a bone channel
+ const std::string get_channel_posebone() const; // returns "" if channel is not a bone channel
const int get_channel_index() const;
const int get_subindex() const;
diff --git a/source/blender/collada/BCMath.h b/source/blender/collada/BCMath.h
index cc2ce7ce315..bb62f6c179a 100644
--- a/source/blender/collada/BCMath.h
+++ b/source/blender/collada/BCMath.h
@@ -54,7 +54,6 @@ class BCQuat {
}
void rotate_to(Matrix &mat_to);
-
};
class BCMatrix {
diff --git a/source/blender/collada/BCSampleData.cpp b/source/blender/collada/BCSampleData.cpp
index 2443ef9fcaa..7e23a2de00f 100644
--- a/source/blender/collada/BCSampleData.cpp
+++ b/source/blender/collada/BCSampleData.cpp
@@ -55,7 +55,7 @@ const bool BCSample::get_value(std::string channel_target, const int array_index
if (bname == bone->name) {
matrix = it->second;
break;
- }
+ }
}
}
else {
diff --git a/source/blender/collada/ControllerExporter.cpp b/source/blender/collada/ControllerExporter.cpp
index b574635217c..bfec387a199 100644
--- a/source/blender/collada/ControllerExporter.cpp
+++ b/source/blender/collada/ControllerExporter.cpp
@@ -444,7 +444,7 @@ void ControllerExporter::add_bind_shape_mat(Object *ob)
// UnitConverter::mat4_to_dae_double(bind_mat, ob->obmat);
UnitConverter::mat4_to_dae_double(bind_mat, f_obmat);
if (this->export_settings.get_limit_precision()) {
- BCMatrix::sanitize(bind_mat, LIMITTED_PRECISION);
+ BCMatrix::sanitize(bind_mat, LIMITTED_PRECISION);
}
addBindShapeTransform(bind_mat);
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp
index 976a3c0edf3..50dc1d8d658 100644
--- a/source/blender/collada/collada_utils.cpp
+++ b/source/blender/collada/collada_utils.cpp
@@ -1367,7 +1367,6 @@ COLLADASW::ColorOrTexture bc_get_emission(bNode *shader)
}
}
-
bool bc_get_reflectivity(bNode *shader, double &reflectivity)
{
bNodeSocket *socket = nodeFindSocket(shader, SOCK_IN, "Specular");