mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improvements and fixes to occluders
Improvements: * Occluder3D is now an abstract type inherited by: ArrayOccluder3D, QuadOccluder3D, BoxOccluder3D, SphereOccluder3D and PolygonOccluder3D. ArrayOccluder3D serves the same purpose as the old Occluder3D (triangle mesh occluder) while the rest are primitives that can be used to manually place simple occluders. * Occluder baking can now apply simplification. The "bake_simplification_distance" property can be used to set a world-space distance as the desired maximum error, set to 0.1 by default. * Occluders can now be generated on import. Using the "occ" and "occonly" keywords (similar to "col" and "colonly" for colliders) or by enabling on MeshInstance3Ds in the scene's import window. Fixes: * Fixed saving of occluder files after bake. * Fixed a small error where occluders didn't correctly update in the rendering server. Bonus content: * Generalized "CollisionPolygon3DEditor" so it can also be used to edit Resources. Renamed it to "Polygon3DEditor" since it was already being used by other things, not just colliders. * Fixed a small bug in "EditorPropertyArray" where a call to "remove" was left after the "remove_at" rename.
This commit is contained in:
parent
6f425242dc
commit
dd970482c5
23 changed files with 1198 additions and 189 deletions
|
|
@ -131,7 +131,6 @@
|
|||
#include "editor/plugins/camera_3d_editor_plugin.h"
|
||||
#include "editor/plugins/canvas_item_editor_plugin.h"
|
||||
#include "editor/plugins/collision_polygon_2d_editor_plugin.h"
|
||||
#include "editor/plugins/collision_polygon_3d_editor_plugin.h"
|
||||
#include "editor/plugins/collision_shape_2d_editor_plugin.h"
|
||||
#include "editor/plugins/cpu_particles_2d_editor_plugin.h"
|
||||
#include "editor/plugins/cpu_particles_3d_editor_plugin.h"
|
||||
|
|
@ -162,6 +161,7 @@
|
|||
#include "editor/plugins/path_3d_editor_plugin.h"
|
||||
#include "editor/plugins/physical_bone_3d_editor_plugin.h"
|
||||
#include "editor/plugins/polygon_2d_editor_plugin.h"
|
||||
#include "editor/plugins/polygon_3d_editor_plugin.h"
|
||||
#include "editor/plugins/replication_editor_plugin.h"
|
||||
#include "editor/plugins/resource_preloader_editor_plugin.h"
|
||||
#include "editor/plugins/root_motion_editor_plugin.h"
|
||||
|
|
@ -5677,6 +5677,7 @@ void EditorNode::_feature_profile_changed() {
|
|||
void EditorNode::_bind_methods() {
|
||||
GLOBAL_DEF("editor/scene/scene_naming", SCENE_NAME_CASING_SNAKE_CASE);
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("editor/scene/scene_naming", PropertyInfo(Variant::INT, "editor/scene/scene_naming", PROPERTY_HINT_ENUM, "Auto,PascalCase,snake_case"));
|
||||
ClassDB::bind_method("edit_current", &EditorNode::edit_current);
|
||||
ClassDB::bind_method("_editor_select", &EditorNode::_editor_select);
|
||||
ClassDB::bind_method("_node_renamed", &EditorNode::_node_renamed);
|
||||
ClassDB::bind_method("edit_node", &EditorNode::edit_node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue