Removed assert from PropertyOwner::RemoveConstraint so we dont assert when attempting... 68/51168/5
authorChu Hoang <c.hoang@samsung.com>
Wed, 4 Nov 2015 16:29:32 +0000 (16:29 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 13 Nov 2015 12:05:09 +0000 (04:05 -0800)
It is possible that a constraint has already been removed (e.g. from DisconnectFromSceneGraph) before the RemoveConstraint message is processed, so we shouldn't assert that this is an invalid state to be in.

Change-Id: I83c722d83f29bc6458d4f1a4d8754b5b16ba3a38

dali/internal/update/common/property-owner.cpp

index ec3d17a..87b3d31 100644 (file)
@@ -154,8 +154,7 @@ void PropertyOwner::RemoveConstraint( ConstraintBase* constraint )
     }
   }
 
-  // Should not come here
-  DALI_ASSERT_DEBUG( false && "Constraint missing in RemoveConstraint" );
+  //it may be that the constraint has already been removed e.g. from disconnection from scene graph, so nothing needs to be done
 }
 
 PropertyOwner::PropertyOwner()