Skip to content

Commit

Permalink
Fix old files load bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaurycyLiebner committed Feb 8, 2021
1 parent 35b278b commit b036649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 2 additions & 9 deletions src/core/TransformEffects/transformeffectcollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,9 @@ void TransformEffectCollection::prp_setupTreeViewMenu(PropertyMenu * const menu)
TransformEffectCollection::prp_setupTreeViewMenu(menu);
}

void TransformEffectCollection::prp_writeProperty_impl(eWriteStream &dst) const {
TransformEffectCollectionBase::prp_writeProperty_impl(dst);
dst << SWT_isVisible();
}

void TransformEffectCollection::prp_readProperty_impl(eReadStream &src) {
void TransformEffectCollection::prp_readProperty(eReadStream &src) {
if(src.evFileVersion() < EvFormat::transformEffects) return;
TransformEffectCollectionBase::prp_readProperty_impl(src);
bool visible; src >> visible;
SWT_setVisible(visible);
TransformEffectCollectionBase::prp_readProperty(src);
}

void TransformEffectCollection::applyEffects(
Expand Down
3 changes: 1 addition & 2 deletions src/core/TransformEffects/transformeffectcollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class CORE_EXPORT TransformEffectCollection :
public:
void prp_setupTreeViewMenu(PropertyMenu * const menu);

void prp_writeProperty_impl(eWriteStream &dst) const;
void prp_readProperty_impl(eReadStream &src);
void prp_readProperty(eReadStream &src);

bool hasEffects();
void readTransformEffect(eReadStream &target);
Expand Down

0 comments on commit b036649

Please sign in to comment.