Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 58f4f27

Browse files
cfontaschinmaygarde
authored andcommitted
change add part to add child (#10787)
1 parent 708fc62 commit 58f4f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/scene_update_context.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode entity_node,
6464
Layer* layer) {
6565
// Frames always clip their children.
6666
SetEntityNodeClipPlanes(entity_node, rrect.getBounds());
67-
// TODO(SCN-1274): AddPart() and SetClip() will be deleted.
67+
// TODO(SCN-1274): SetClip() will be deleted.
6868
entity_node.SetClip(0u, true /* clip to self */);
6969

7070
// We don't need a shape if the frame is zero size.
@@ -286,7 +286,7 @@ SceneUpdateContext::Transform::~Transform() {
286286

287287
SceneUpdateContext::Shape::Shape(SceneUpdateContext& context)
288288
: Entity(context), shape_node_(context.session()) {
289-
entity_node().AddPart(shape_node_);
289+
entity_node().AddChild(shape_node_);
290290
}
291291

292292
SceneUpdateContext::Frame::Frame(SceneUpdateContext& context,

0 commit comments

Comments
 (0)