minor code improvements

This commit is contained in:
itsmattkc
2019-03-13 09:42:50 +11:00
parent 935cf04d95
commit 3213749adf
2 changed files with 18 additions and 13 deletions
+2
View File
@@ -37,6 +37,8 @@ EffectGizmo::EffectGizmo(Effect *parent, int type) :
type(type),
cursor(-1)
{
Q_ASSERT(parent != nullptr);
int point_count = (type == GIZMO_TYPE_POLY) ? 4 : 1;
world_pos.resize(point_count);
screen_pos.resize(point_count);