Skip to content

Commit 06135f8

Browse files
committed
Fix PNG generation with 3D drawings
1 parent 36aea94 commit 06135f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootPainter.v6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,7 @@
38093809
//rrr.setSize(sz.width, sz.height);
38103810
//rrr.render(main.scene, main.camera);
38113811

3812-
main.insert("g",".primitives_layer") // create special group
3812+
elem.insert("g",".primitives_layer") // create special group
38133813
.attr("class","temp_saveaspng")
38143814
.attr("transform", "translate(" + sz.x + "," + sz.y + ")")
38153815
.node().appendChild(svg3d); // add code

0 commit comments

Comments
 (0)