You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename ViewportContainer to SubViewportContainer
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "material_editor_plugin.h"
|
||||
|
||||
#include "editor/editor_scale.h"
|
||||
#include "scene/gui/viewport_container.h"
|
||||
#include "scene/gui/subviewport_container.h"
|
||||
#include "scene/resources/particles_material.h"
|
||||
#include "scene/resources/sky_material.h"
|
||||
|
||||
@@ -110,7 +110,7 @@ void MaterialEditor::_bind_methods() {
|
||||
|
||||
MaterialEditor::MaterialEditor() {
|
||||
|
||||
vc = memnew(ViewportContainer);
|
||||
vc = memnew(SubViewportContainer);
|
||||
vc->set_stretch(true);
|
||||
add_child(vc);
|
||||
vc->set_anchors_and_margins_preset(PRESET_WIDE);
|
||||
|
||||
Reference in New Issue
Block a user