Skip to content

Commit

Permalink
Merge pull request #4963 from shun-iwasawa/fix_assistant_tool_slowness
Browse files Browse the repository at this point in the history
Fix Assistant Tool Slowness
  • Loading branch information
RodneyBaker authored Jun 20, 2023
2 parents e6492d0 + ec85add commit 2a1fb4d
Show file tree
Hide file tree
Showing 7 changed files with 279 additions and 205 deletions.
24 changes: 12 additions & 12 deletions toonz/sources/include/tools/modifiers/modifiertest.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

#ifndef NDEBUG
#pragma once

#ifndef MODIFIERTEST_INCLUDED
Expand All @@ -6,7 +8,6 @@
// TnzTools includes
#include <tools/inputmanager.h>


#undef DVAPI
#undef DVVAR
#ifdef TNZTOOLS_EXPORTS
Expand All @@ -17,28 +18,28 @@
#define DVVAR DV_IMPORT_VAR
#endif


//===================================================================

//*****************************************************************************************
// TModifierTest definition
//*****************************************************************************************

class DVAPI TModifierTest: public TInputModifier {
class DVAPI TModifierTest : public TInputModifier {
public:
class DVAPI Handler: public TTrackHandler {
class DVAPI Handler : public TTrackHandler {
public:
std::vector<double> angles;
Handler(const TTrack &original): TTrackHandler(original) { }
Handler(const TTrack &original) : TTrackHandler(original) {}
};

class DVAPI Modifier: public TTrackModifier {
class DVAPI Modifier : public TTrackModifier {
public:
double angle;
double radius;
double speed;

Modifier(TTrackHandler &handler, double angle, double radius, double speed = 0.25);
Modifier(TTrackHandler &handler, double angle, double radius,
double speed = 0.25);
TTrackPoint calcPoint(double originalIndex) override;
};

Expand All @@ -48,11 +49,10 @@ class DVAPI TModifierTest: public TInputModifier {

TModifierTest(int count, double radius);

void modifyTrack(
const TTrack &track,
const TInputSavePoint::Holder &savePoint,
TTrackList &outTracks ) override;
void modifyTrack(const TTrack &track,
const TInputSavePoint::Holder &savePoint,
TTrackList &outTracks) override;
};


#endif
#endif
1 change: 1 addition & 0 deletions toonz/sources/include/tools/tooloptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ class BrushToolOptionsBox final : public ToolOptionsBox {
private:
class PresetNamePopup;
PresetNamePopup *m_presetNamePopup;
void filterControls();

public:
BrushToolOptionsBox(QWidget *parent, TTool *tool, TPaletteHandle *pltHandle,
Expand Down
Loading

0 comments on commit 2a1fb4d

Please sign in to comment.