You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix crash in texture previeer, closes #26749, probably others
This commit is contained in:
@@ -138,6 +138,11 @@ TextureEditor::TextureEditor() {
|
|||||||
set_custom_minimum_size(Size2(1, 150));
|
set_custom_minimum_size(Size2(1, 150));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextureEditor::~TextureEditor() {
|
||||||
|
if (!texture.is_null()) {
|
||||||
|
texture->remove_change_receptor(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
//
|
//
|
||||||
bool EditorInspectorPluginTexture::can_handle(Object *p_object) {
|
bool EditorInspectorPluginTexture::can_handle(Object *p_object) {
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
void edit(Ref<Texture> p_texture);
|
void edit(Ref<Texture> p_texture);
|
||||||
TextureEditor();
|
TextureEditor();
|
||||||
|
~TextureEditor();
|
||||||
};
|
};
|
||||||
|
|
||||||
class EditorInspectorPluginTexture : public EditorInspectorPlugin {
|
class EditorInspectorPluginTexture : public EditorInspectorPlugin {
|
||||||
|
|||||||
Reference in New Issue
Block a user