Skip to content

Commit

Permalink
change add part to add child (#10787)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfontas authored and chinmaygarde committed Aug 9, 2019
1 parent 708fc62 commit 58f4f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/scene_update_context.cc
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 58f4f27

Please sign in to comment.