Commit 20868819 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectHelper: Update length when target changes.

parent 60bec5e4
......@@ -21,6 +21,7 @@
*****************************************************************************/
#include "EffectHelper.h"
#include "EffectUser.h"
EffectHelper::EffectHelper( EffectInstance *effectInstance, qint64 begin, qint64 end,
const QString &uuid ) :
......@@ -52,4 +53,9 @@ void
EffectHelper::setTarget( const EffectUser *target )
{
m_target = target;
m_begin = 0;
if ( target != NULL )
m_end = target->length();
else
m_end = -1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment