Commit 31c507a
authored
2D: Composite draw layer into ref image for default gen (#1156)
3D nodes and drawings on the canvas were missing from the reference
image sent to the model in the default generation path. The fix mirrors
the Nano Banana Pro approach: render a composite of the base image and
the draw layer, upload it via uploadSceneSnapshot, and pass it as
scene_image_media_token rather than putting editedImageToken in
image_media_tokens.1 parent 42bb07c commit 31c507a
1 file changed
+24
-9
lines changedLines changed: 24 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
857 | 877 | | |
858 | 878 | | |
859 | 879 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
866 | 884 | | |
867 | 885 | | |
868 | 886 | | |
| |||
874 | 892 | | |
875 | 893 | | |
876 | 894 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | 895 | | |
881 | 896 | | |
882 | 897 | | |
| |||
0 commit comments