From 3156779b1ab6e5683ff1c0cdb97abc7583311cb2 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Fri, 16 Dec 2022 01:27:23 -0800 Subject: [PATCH] Fix SceneC crash for nodes with children --- impeller/fixtures/BUILD.gn | 6 +++++- impeller/fixtures/two_triangles.glb | Bin 0 -> 3376 bytes impeller/scene/importer/importer_gltf.cc | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 impeller/fixtures/two_triangles.glb diff --git a/impeller/fixtures/BUILD.gn b/impeller/fixtures/BUILD.gn index a52d020d65bfb..7c8fe01a79e2f 100644 --- a/impeller/fixtures/BUILD.gn +++ b/impeller/fixtures/BUILD.gn @@ -34,7 +34,10 @@ impeller_shaders("shader_fixtures") { } scenec("scene_fixtures") { - geometry = [ "flutter_logo.glb" ] + geometry = [ + "flutter_logo.glb", + "two_triangles.glb", + ] type = "gltf" } @@ -79,6 +82,7 @@ test_fixtures("file_fixtures") { "table_mountain_py.png", "table_mountain_pz.png", "test_texture.frag", + "two_triangles.glb", "types.h", "wtf.otf", ] diff --git a/impeller/fixtures/two_triangles.glb b/impeller/fixtures/two_triangles.glb new file mode 100644 index 0000000000000000000000000000000000000000..3937ac6969769d9b2c5f274ecb6f72c541a40a26 GIT binary patch literal 3376 zcmb_fO>g5w787E(WN8zWM7u~)1x_+e4F0Ibla^H!ZGHoH zu1I@<3wN&kgZ(o|<(aV)r*_+Q5UwrHyfg3nJnz@Uo%^HbA8DFqe4=URA8XpnVZXN` zZX7c~S}QVVA>*!yIBAh@7CZ{0xH5-I<k(bm93k&JcsKA>B!QJ&lBjg8P1eVV+LL+Q>ZlpB$0o z0v0b+Hd0z6?z!RINB9wkpFEH@az2>43_-fR%>!2~IU_Pr7&55)Nls_ca^kb0H)Au> z5`4*aN&`rAay{V}Ot`-9O$X6(z6e-tXs<2%`74fa^ zPF8i+lJevDFE~Rs4q*WFLm4Qx@j}({u5vre36sFw3q0Z7q>HW)+?y$C2QualX*)`=I+ys5P2 zWJyUA`50DBC;M3S46Ct^)x3vAQ5zW;1;K3zfbCi}udJb@9=uSV1?&{$E?hXQ2vT_R zW8{TG?m>(ZwTCLponm(!@x;<(d3DA3E05i(7)_(#Itp1RMsKdswhlGn%rshtIIj?! z!2Ma-POJyAq{qip_Epl`^%`{=)W(UR;Ds_mUY&I;99JmEJuo=<0kBNlENH{k(%MCA zcv93>gtm@m*meQien|UXn4Z!`85OY=p&a(G(>`wx3g`-`RFbS*QgTVdxsD3Ss20P7 z!YxvL#L;4kQ0t|&i`Zz6qIT&NQ5Z7b@!HfUPHjm3Nrd5WTX%`AD0_0pZFco6=fY*1Gz;~!gynCy@BfsWaZ66P61`NeBuBe7<;O+|6CK2Mb8@8p@C9V= m@NB^69ri=E`Bd)1{PRC(); ProcessNode(gltf, gltf.nodes[in_node.children[node_i]], *child); out_node.children.push_back(std::move(child));