Use Spatial shader as default for Mesh
This commit is contained in:
parent
2e8862887c
commit
a1899111be
@ -42,6 +42,7 @@
|
|||||||
#include "scene/3d/gpu_particles_3d.h"
|
#include "scene/3d/gpu_particles_3d.h"
|
||||||
#include "scene/main/window.h"
|
#include "scene/main/window.h"
|
||||||
#include "scene/resources/font.h"
|
#include "scene/resources/font.h"
|
||||||
|
#include "scene/resources/mesh.h"
|
||||||
|
|
||||||
///////////////////// Nil /////////////////////////
|
///////////////////// Nil /////////////////////////
|
||||||
|
|
||||||
@ -3172,7 +3173,7 @@ void EditorPropertyResource::_update_preferred_shader() {
|
|||||||
shader_picker->set_preferred_mode(Shader::MODE_FOG);
|
shader_picker->set_preferred_mode(Shader::MODE_FOG);
|
||||||
} else if (Object::cast_to<CanvasItem>(object)) {
|
} else if (Object::cast_to<CanvasItem>(object)) {
|
||||||
shader_picker->set_preferred_mode(Shader::MODE_CANVAS_ITEM);
|
shader_picker->set_preferred_mode(Shader::MODE_CANVAS_ITEM);
|
||||||
} else if (Object::cast_to<Node3D>(object)) {
|
} else if (Object::cast_to<Node3D>(object) || Object::cast_to<Mesh>(object)) {
|
||||||
shader_picker->set_preferred_mode(Shader::MODE_SPATIAL);
|
shader_picker->set_preferred_mode(Shader::MODE_SPATIAL);
|
||||||
} else if (Object::cast_to<Sky>(object)) {
|
} else if (Object::cast_to<Sky>(object)) {
|
||||||
shader_picker->set_preferred_mode(Shader::MODE_SKY);
|
shader_picker->set_preferred_mode(Shader::MODE_SKY);
|
||||||
|
Loading…
Reference in New Issue
Block a user