Format code #1292
This commit is contained in:
@@ -484,8 +484,7 @@ namespace
|
||||
|
||||
void Spline::OnDebugDraw()
|
||||
{
|
||||
const Color color = GetSplineColor();
|
||||
DrawSpline(this, color.AlphaMultiplied(0.7f), _transform, true);
|
||||
DrawSpline(this, GetSplineColor().AlphaMultiplied(0.7f), _transform, true);
|
||||
|
||||
// Base
|
||||
Actor::OnDebugDraw();
|
||||
@@ -493,8 +492,7 @@ void Spline::OnDebugDraw()
|
||||
|
||||
void Spline::OnDebugDrawSelected()
|
||||
{
|
||||
const Color color = GetSplineColor();
|
||||
DrawSpline(this, color.AlphaMultiplied(0.3f), _transform, false);
|
||||
DrawSpline(this, Color::White, _transform, false);
|
||||
|
||||
// Base
|
||||
Actor::OnDebugDrawSelected();
|
||||
|
||||
@@ -354,6 +354,7 @@ public:
|
||||
|
||||
protected:
|
||||
#if USE_EDITOR
|
||||
// Spline color getter for debug drawing, can be overriden by custom spline types.
|
||||
virtual Color GetSplineColor()
|
||||
{
|
||||
return Color::White;
|
||||
|
||||
Reference in New Issue
Block a user