Merge pull request #6186 from TheHX/pr-issue-5878
Fix editor glitches when the mesh/material preview is shown
This commit is contained in:
commit
1b01246731
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ MaterialEditor::MaterialEditor() {
|
||||||
world.instance();
|
world.instance();
|
||||||
viewport->set_world(world); //use own world
|
viewport->set_world(world); //use own world
|
||||||
add_child(viewport);
|
add_child(viewport);
|
||||||
viewport->set_process_input(false);
|
viewport->set_disable_input(true);
|
||||||
|
|
||||||
camera = memnew( Camera );
|
camera = memnew( Camera );
|
||||||
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
||||||
|
|
|
@ -147,7 +147,7 @@ MeshEditor::MeshEditor() {
|
||||||
world.instance();
|
world.instance();
|
||||||
viewport->set_world(world); //use own world
|
viewport->set_world(world); //use own world
|
||||||
add_child(viewport);
|
add_child(viewport);
|
||||||
viewport->set_process_input(false);
|
viewport->set_disable_input(true);
|
||||||
|
|
||||||
camera = memnew( Camera );
|
camera = memnew( Camera );
|
||||||
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
camera->set_transform(Transform(Matrix3(),Vector3(0,0,3)));
|
||||||
|
|
Loading…
Reference in a new issue