Tweaks and fixes

This commit is contained in:
Wojtek Figat
2022-01-07 12:08:52 +01:00
parent 779e41a686
commit bbfe0446f0
8 changed files with 11 additions and 21 deletions

View File

@@ -525,11 +525,11 @@ namespace FlaxEditor.GUI.Timeline
private void EndMoving()
{
_isMoving = false;
_startMoveLeftEdge = false;
_startMoveRightEdge = false;
if (_startMoveLeftEdge || _startMoveRightEdge)
{
_startMoveLeftEdge = false;
_startMoveRightEdge = false;
// Re-assign the media start/duration inside the undo recording block
if (_startMoveStartFrame != _startFrame || _startMoveDuration != _durationFrames)
{

View File

@@ -476,11 +476,6 @@ void ManagedEditor::OnEditorAssemblyLoaded(MAssembly* assembly)
CreateManaged();
}
String ManagedEditor::ToString() const
{
return TEXT("ManagedEditor");
}
void ManagedEditor::DestroyManaged()
{
// Ensure to cleanup managed stuff

View File

@@ -145,6 +145,5 @@ private:
public:
// [PersistentScriptingObject]
String ToString() const override;
void DestroyManaged() override;
};

View File

@@ -44,7 +44,7 @@ namespace FlaxEditor.Viewport.Previews
// Playback Speed
{
var playbackSpeed = ViewWidgetButtonMenu.AddButton("Playback Speed");
var playbackSpeedValue = new FloatValueBox(-1, 90, 2, 70.0f, 0.0f, 10000.0f, 0.001f)
var playbackSpeedValue = new FloatValueBox(-1, 90, 2, 70.0f, -10000.0f, 10000.0f, 0.001f)
{
Parent = playbackSpeed
};

View File

@@ -769,6 +769,12 @@ public:
}
};
/// <summary>
/// An animation spline represented by a set of keyframes, each representing a value point.
/// </summary>
template<typename T>
using StepCurve = Curve<T, StepCurveKeyframe<T>>;
/// <summary>
/// An animation spline represented by a set of keyframes, each representing an endpoint of a linear curve.
/// </summary>

View File

@@ -384,7 +384,7 @@ public:
/// <summary>
/// The slots animations.
/// </summary>
Array<AnimGraphSlot> Slots;
Array<AnimGraphSlot, InlinedAllocation<4>> Slots;
public:

View File

@@ -183,8 +183,3 @@ void RenderBuffers::Release()
UPDATE_LAZY_KEEP_RT(LuminanceMap);
#undef UPDATE_LAZY_KEEP_RT
}
String RenderBuffers::ToString() const
{
return TEXT("RenderBuffers");
}

View File

@@ -175,9 +175,4 @@ public:
/// Release the buffers data.
/// </summary>
API_FUNCTION() void Release();
public:
// [PersistentScriptingObject]
String ToString() const override;
};