Browse Source

use explicit default initialization in TrailPoint in-class member initializers; add periods to comments.

Ricardo Abreu 7 years ago
parent
commit
38feb91078

+ 6 - 6
Source/Urho3D/Graphics/RibbonTrail.h

@@ -39,9 +39,9 @@ class VertexBuffer;
 /// Trail is consisting of series of tails. Two connected points make a tail.
 /// Trail is consisting of series of tails. Two connected points make a tail.
 struct URHO3D_API TrailPoint
 struct URHO3D_API TrailPoint
 {
 {
-    /// Construct a zero-initialized TrailPoint
+    /// Construct a zero-initialized TrailPoint.
     TrailPoint() = default;
     TrailPoint() = default;
-    /// Construct a TrailPoint with the given position and forward vector
+    /// Construct a TrailPoint with the given position and forward vector.
     TrailPoint(const Vector3& position, const Vector3& forward);
     TrailPoint(const Vector3& position, const Vector3& forward);
     /// Position.
     /// Position.
     Vector3 position_;
     Vector3 position_;
@@ -50,13 +50,13 @@ struct URHO3D_API TrailPoint
     /// Parent position. Trail bone type uses this.
     /// Parent position. Trail bone type uses this.
     Vector3 parentPos_;
     Vector3 parentPos_;
     /// Elapsed length inside the trail.
     /// Elapsed length inside the trail.
-    float elapsedLength_ = 0.0f;
+    float elapsedLength_{};
     /// Next point to make a tail.
     /// Next point to make a tail.
-    TrailPoint* next_ = nullptr;
+    TrailPoint* next_{};
     /// Tail time to live.
     /// Tail time to live.
-    float lifetime_ = 0.0f;
+    float lifetime_{};
     /// Distance for sorting.
     /// Distance for sorting.
-    float sortDistance_ = 0.0f;
+    float sortDistance_{};
 };
 };
 
 
 /// Drawable component that creates a tail.
 /// Drawable component that creates a tail.

+ 1 - 1
bin/Data/LuaScripts/45_InverseKinematics.lua

@@ -1,5 +1,5 @@
 -- Ribbon trail demo.
 -- Ribbon trail demo.
--- This sample demonstrates how to adjust the position of animated feet so they match the ground's angle using IK
+-- This sample demonstrates how to adjust the position of animated feet so they match the ground's angle using IK.
 
 
 require "LuaScripts/Utilities/Sample"
 require "LuaScripts/Utilities/Sample"