Style: Cleanup uses of double spaces between words
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.
(cherry picked from commit c1c76850cb
)
This commit is contained in:
parent
b449380235
commit
80e1585a6e
@ -1681,61 +1681,10 @@ void SkeletonSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) {
|
||||
surface_tool->add_color(bonecolor);
|
||||
surface_tool->add_vertex(points[(j + 1) % 4]);
|
||||
}
|
||||
|
||||
/*
|
||||
bones[0]=parent;
|
||||
surface_tool->add_bones(bones);
|
||||
surface_tool->add_weights(weights);
|
||||
surface_tool->add_color(Color(0.4,1,0.4,0.4));
|
||||
surface_tool->add_vertex(v0);
|
||||
bones[0]=i;
|
||||
surface_tool->add_bones(bones);
|
||||
surface_tool->add_weights(weights);
|
||||
surface_tool->add_color(Color(0.4,1,0.4,0.4));
|
||||
surface_tool->add_vertex(v1);
|
||||
*/
|
||||
} else {
|
||||
grests.write[i] = skel->get_bone_rest(i);
|
||||
bones.write[0] = i;
|
||||
}
|
||||
/*
|
||||
Transform t = grests[i];
|
||||
t.orthonormalize();
|
||||
|
||||
for (int i=0;i<6;i++) {
|
||||
|
||||
|
||||
Vector3 face_points[4];
|
||||
|
||||
for (int j=0;j<4;j++) {
|
||||
|
||||
float v[3];
|
||||
v[0]=1.0;
|
||||
v[1]=1-2*((j>>1)&1);
|
||||
v[2]=v[1]*(1-2*(j&1));
|
||||
|
||||
for (int k=0;k<3;k++) {
|
||||
|
||||
if (i<3)
|
||||
face_points[j][(i+k)%3]=v[k]*(i>=3?-1:1);
|
||||
else
|
||||
face_points[3-j][(i+k)%3]=v[k]*(i>=3?-1:1);
|
||||
}
|
||||
}
|
||||
|
||||
for(int j=0;j<4;j++) {
|
||||
surface_tool->add_bones(bones);
|
||||
surface_tool->add_weights(weights);
|
||||
surface_tool->add_color(Color(1.0,0.4,0.4,0.4));
|
||||
surface_tool->add_vertex(t.xform(face_points[j]*0.04));
|
||||
surface_tool->add_bones(bones);
|
||||
surface_tool->add_weights(weights);
|
||||
surface_tool->add_color(Color(1.0,0.4,0.4,0.4));
|
||||
surface_tool->add_vertex(t.xform(face_points[(j+1)%4]*0.04));
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Ref<ArrayMesh> m = surface_tool->commit();
|
||||
|
@ -460,7 +460,7 @@ real_t SpaceBullet::get_param(PhysicsServer::SpaceParameter p_param) {
|
||||
case PhysicsServer::SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO:
|
||||
case PhysicsServer::SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS:
|
||||
default:
|
||||
WARN_PRINTS("The SpaceBullet doesn't support this get parameter (" + itos(p_param) + "), 0 is returned.");
|
||||
WARN_PRINT("The SpaceBullet doesn't support this get parameter (" + itos(p_param) + "), 0 is returned.");
|
||||
return 0.f;
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
}
|
||||
}
|
||||
|
||||
/* and now we have it all. initialize decoders */
|
||||
/* And now we have it all. Initialize decoders. */
|
||||
if (theora_p) {
|
||||
td = th_decode_alloc(&ti, ts);
|
||||
px_fmt = ti.pixel_fmt;
|
||||
|
@ -37,8 +37,8 @@
|
||||
|
||||
/*
|
||||
The `config` section and fields are required and defined as follow:
|
||||
- **name**: name of the plugin
|
||||
- **binary_type**: can be either `local` or `remote`. The type affects the **binary** field
|
||||
- **name**: name of the plugin.
|
||||
- **binary_type**: can be either `local` or `remote`. The type affects the **binary** field.
|
||||
- **binary**:
|
||||
- if **binary_type** is `local`, then this should be the filename of the plugin `aar` file in the `res://android/plugins` directory (e.g: `MyPlugin.aar`).
|
||||
- if **binary_type** is `remote`, then this should be a declaration for a remote gradle binary (e.g: "org.godot.example:my-plugin:0.0.0").
|
||||
|
@ -759,11 +759,11 @@ void SpatialMaterial::_update_shader() {
|
||||
code += "\t\tvec2 P = view_dir.xy * depth_scale;\n";
|
||||
code += "\t\tvec2 delta = P / num_layers;\n";
|
||||
code += "\t\tvec2 ofs = base_uv;\n";
|
||||
code += "\t\tfloat depth = textureLod(texture_depth, ofs,0.0).r;\n";
|
||||
code += "\t\tfloat depth = textureLod(texture_depth, ofs, 0.0).r;\n";
|
||||
code += "\t\tfloat current_depth = 0.0;\n";
|
||||
code += "\t\twhile(current_depth < depth) {\n";
|
||||
code += "\t\t\tofs -= delta;\n";
|
||||
code += "\t\t\tdepth = textureLod(texture_depth, ofs,0.0).r;\n";
|
||||
code += "\t\t\tdepth = textureLod(texture_depth, ofs, 0.0).r;\n";
|
||||
code += "\t\t\tcurrent_depth += layer_depth;\n";
|
||||
code += "\t\t}\n";
|
||||
code += "\t\tvec2 prev_ofs = ofs + delta;\n";
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
|
||||
//! temp_variables
|
||||
//!@{
|
||||
real_t m_currentLimitError; //! How much is violated this limit
|
||||
real_t m_currentLimitError; //!< How much is violated this limit
|
||||
int m_currentLimit; //!< 0=free, 1=at lo limit, 2=at hi limit
|
||||
real_t m_accumulatedImpulse;
|
||||
//!@}
|
||||
|
Loading…
Reference in New Issue
Block a user