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_color(bonecolor);
|
||||||
surface_tool->add_vertex(points[(j + 1) % 4]);
|
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 {
|
} else {
|
||||||
grests.write[i] = skel->get_bone_rest(i);
|
grests.write[i] = skel->get_bone_rest(i);
|
||||||
bones.write[0] = 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();
|
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_BODY_ANGULAR_VELOCITY_DAMP_RATIO:
|
||||||
case PhysicsServer::SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS:
|
case PhysicsServer::SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS:
|
||||||
default:
|
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;
|
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) {
|
if (theora_p) {
|
||||||
td = th_decode_alloc(&ti, ts);
|
td = th_decode_alloc(&ti, ts);
|
||||||
px_fmt = ti.pixel_fmt;
|
px_fmt = ti.pixel_fmt;
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
The `config` section and fields are required and defined as follow:
|
The `config` section and fields are required and defined as follow:
|
||||||
- **name**: name of the plugin
|
- **name**: name of the plugin.
|
||||||
- **binary_type**: can be either `local` or `remote`. The type affects the **binary** field
|
- **binary_type**: can be either `local` or `remote`. The type affects the **binary** field.
|
||||||
- **binary**:
|
- **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 `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").
|
- 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").
|
||||||
|
@ -81,7 +81,7 @@ public:
|
|||||||
|
|
||||||
//! temp_variables
|
//! 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
|
int m_currentLimit; //!< 0=free, 1=at lo limit, 2=at hi limit
|
||||||
real_t m_accumulatedImpulse;
|
real_t m_accumulatedImpulse;
|
||||||
//!@}
|
//!@}
|
||||||
|
Loading…
Reference in New Issue
Block a user