Skip to content

Commit

Permalink
Fixing ANIMATION_KEY and ANIMATION_TRACK integration into types after…
Browse files Browse the repository at this point in the history
… rebase.
  • Loading branch information
blackears committed Dec 5, 2021
1 parent f743a50 commit caaa09d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/engraving/libmscore/factory.cpp
Expand Up @@ -213,6 +213,8 @@ static const ElementName elementNames[] = {
{ ElementType::STICKING, "Sticking", QT_TRANSLATE_NOOP("elementName", "Sticking") },
{ ElementType::ROOT_ITEM, "RootItem", QT_TRANSLATE_NOOP("elementName", "Root item") },
{ ElementType::DUMMY, "Dummy", QT_TRANSLATE_NOOP("elementName", "Dummy") },
{ ElementType::ANIMATION_TRACK, "AnimationTrack", QT_TRANSLATE_NOOP("elementName", "AnimationTrack") },
{ ElementType::ANIMATION_KEY, "AnimationKey", QT_TRANSLATE_NOOP("elementName", "AnimationKey") },
};
/* *INDENT-ON* */

Expand Down Expand Up @@ -350,6 +352,8 @@ EngravingItem* Factory::doCreateItem(ElementType type, EngravingItem* parent)
case ElementType::OSSIA:
case ElementType::ROOT_ITEM:
case ElementType::DUMMY:
case ElementType::ANIMATION_KEY:
case ElementType::ANIMATION_TRACK:
break;
}
qDebug("cannot create type %d <%s>", int(type), Factory::name(type));
Expand Down
5 changes: 2 additions & 3 deletions src/engraving/libmscore/types.h
Expand Up @@ -154,11 +154,10 @@ enum class ElementType {
OSSIA,
BAGPIPE_EMBELLISHMENT,
STICKING,
ANIMATION_TRACK,
ANIMATION_KEY,

ROOT_ITEM,
DUMMY,
ANIMATION_TRACK,
ANIMATION_KEY,

MAXTYPE
///\}
Expand Down

0 comments on commit caaa09d

Please sign in to comment.