Fix editor glitches when the mesh/material preview is shown
(cherry picked from commit a4c3d2dc89
)
This commit is contained in:
parent
4890db7fef
commit
3cbd6b8701
@ -103,7 +103,7 @@ MaterialEditor::MaterialEditor() {
|
||||
world.instance();
|
||||
viewport->set_world(world); //use own world
|
||||
add_child(viewport);
|
||||
viewport->set_process_input(false);
|
||||
viewport->set_disable_input(true);
|
||||
|
||||
camera = memnew( Camera );
|
||||
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
||||
|
@ -147,7 +147,7 @@ MeshEditor::MeshEditor() {
|
||||
world.instance();
|
||||
viewport->set_world(world); //use own world
|
||||
add_child(viewport);
|
||||
viewport->set_process_input(false);
|
||||
viewport->set_disable_input(true);
|
||||
|
||||
camera = memnew( Camera );
|
||||
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
||||
|
Loading…
Reference in New Issue
Block a user