actor: Fix has_constraints() and has_actions()
When we changed the MetaGroup to handle internal effects, we updated has_effects(), but forgot to fix the equivalent has_constrains() and has_actions() method. Now, if we clear the constraints or the actions on an actor, and we call has_constraints() or has_actions(), we get an false positive.
This commit is contained in:
parent
e1fe999db0
commit
cbf0199804
@ -17295,7 +17295,10 @@ clutter_actor_has_constraints (ClutterActor *self)
|
||||
{
|
||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
||||
|
||||
return self->priv->constraints != NULL;
|
||||
if (self->priv->constraints == NULL)
|
||||
return FALSE;
|
||||
|
||||
return _clutter_meta_group_has_metas_no_internal (self->priv->constraints);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -17314,7 +17317,10 @@ clutter_actor_has_actions (ClutterActor *self)
|
||||
{
|
||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
||||
|
||||
return self->priv->actions != NULL;
|
||||
if (self->priv->actions == NULL)
|
||||
return FALSE;
|
||||
|
||||
return _clutter_meta_group_has_metas_no_internal (self->priv->actions);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user