Merge pull request #44907 from qarmin/fix_leak_gradient
Fix memory leak with Gradient in Node3DEditorViewport
This commit is contained in:
commit
c5ff2cb3d9
|
@ -4141,6 +4141,10 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, Edito
|
||||||
EditorSettings::get_singleton()->connect("settings_changed", callable_mp(this, &Node3DEditorViewport::update_transform_gizmo_view));
|
EditorSettings::get_singleton()->connect("settings_changed", callable_mp(this, &Node3DEditorViewport::update_transform_gizmo_view));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Node3DEditorViewport::~Node3DEditorViewport() {
|
||||||
|
memdelete(frame_time_gradient);
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void Node3DEditorViewportContainer::_gui_input(const Ref<InputEvent> &p_event) {
|
void Node3DEditorViewportContainer::_gui_input(const Ref<InputEvent> &p_event) {
|
||||||
|
|
|
@ -483,6 +483,7 @@ public:
|
||||||
Camera3D *get_camera() { return camera; } // return the default camera object.
|
Camera3D *get_camera() { return camera; } // return the default camera object.
|
||||||
|
|
||||||
Node3DEditorViewport(Node3DEditor *p_spatial_editor, EditorNode *p_editor, int p_index);
|
Node3DEditorViewport(Node3DEditor *p_spatial_editor, EditorNode *p_editor, int p_index);
|
||||||
|
~Node3DEditorViewport();
|
||||||
};
|
};
|
||||||
|
|
||||||
class Node3DEditorSelectedItem : public Object {
|
class Node3DEditorSelectedItem : public Object {
|
||||||
|
|
Loading…
Reference in New Issue