summaryrefslogtreecommitdiff
path: root/editor/editor_atlas_packer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_atlas_packer.cpp')
-rw-r--r--editor/editor_atlas_packer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_atlas_packer.cpp b/editor/editor_atlas_packer.cpp
index 1b4a505edb..85541c093a 100644
--- a/editor/editor_atlas_packer.cpp
+++ b/editor/editor_atlas_packer.cpp
@@ -105,7 +105,7 @@ void EditorAtlasPacker::chart_pack(Vector<Chart> &charts, int &r_width, int &r_h
}
Ref<BitMap> src_bitmap;
- src_bitmap.instance();
+ src_bitmap.instantiate();
src_bitmap->create(aabb.size / divide_by);
int w = src_bitmap->get_size().width;