You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Fix crash when editing SampleLibrary with broken dependencies
This commit is contained in:
@@ -69,6 +69,9 @@ void SampleEditor::_stop_pressed() {
|
||||
|
||||
void SampleEditor::generate_preview_texture(const Ref<Sample> &p_sample, Ref<ImageTexture> &p_texture) {
|
||||
|
||||
if (p_sample == NULL)
|
||||
return;
|
||||
|
||||
DVector<uint8_t> data = p_sample->get_data();
|
||||
|
||||
DVector<uint8_t> img;
|
||||
|
||||
Reference in New Issue
Block a user