From 58f4f27a4e55842c3a82ea2c9862bdfbeed9551d Mon Sep 17 00:00:00 2001 From: cfontas Date: Fri, 9 Aug 2019 12:18:44 -0700 Subject: [PATCH] change add part to add child (#10787) --- flow/scene_update_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/scene_update_context.cc b/flow/scene_update_context.cc index 76c5619f3fac..14190b5b5d63 100644 --- a/flow/scene_update_context.cc +++ b/flow/scene_update_context.cc @@ -64,7 +64,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode entity_node, Layer* layer) { // Frames always clip their children. SetEntityNodeClipPlanes(entity_node, rrect.getBounds()); - // TODO(SCN-1274): AddPart() and SetClip() will be deleted. + // TODO(SCN-1274): SetClip() will be deleted. entity_node.SetClip(0u, true /* clip to self */); // We don't need a shape if the frame is zero size. @@ -286,7 +286,7 @@ SceneUpdateContext::Transform::~Transform() { SceneUpdateContext::Shape::Shape(SceneUpdateContext& context) : Entity(context), shape_node_(context.session()) { - entity_node().AddPart(shape_node_); + entity_node().AddChild(shape_node_); } SceneUpdateContext::Frame::Frame(SceneUpdateContext& context,