Skip to content

Commit e33a5d0

Browse files
committed
Fix PNG generation with 3D drawings
1 parent d27f781 commit e33a5d0

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
@@ -3769,7 +3769,7 @@
37693769
//rrr.setSize(sz.width, sz.height);
37703770
//rrr.render(main.scene, main.camera);
37713771

3772-
main.insert("g",".primitives_layer") // create special group
3772+
elem.insert("g",".primitives_layer") // create special group
37733773
.attr("class","temp_saveaspng")
37743774
.attr("transform", "translate(" + sz.x + "," + sz.y + ")")
37753775
.node().appendChild(svg3d); // add code

0 commit comments

Comments
 (0)