Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 8ea46f5

Browse files
committed
Copy scene previewbitmapfile in clone create to fix an oddity with scene editor
1 parent 92d3528 commit 8ea46f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Entities/Scene.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ int Scene::Create(const Scene &reference)
576576
// Destination
577577
m_pPreviewBitmap = create_bitmap_ex(8, pCopyFrom->w, pCopyFrom->h);
578578
RTEAssert(m_pPreviewBitmap, "Failed to allocate BITMAP in Scene::Create");
579+
m_PreviewBitmapFile = reference.m_PreviewBitmapFile;
579580

580581
// Copy!
581582
blit(pCopyFrom, m_pPreviewBitmap, 0, 0, 0, 0, pCopyFrom->w, pCopyFrom->h);

0 commit comments

Comments
 (0)