From 17ebbfb56de980c5529c8a02a12141dd7bb766c8 Mon Sep 17 00:00:00 2001 From: AndreaCatania Date: Tue, 21 Nov 2017 01:36:32 +0100 Subject: Implemented Soft body - Soft Body Physics node - Soft Body Rendering - Soft body Editor - Soft body importer --- modules/bullet/register_types.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/bullet/register_types.cpp') diff --git a/modules/bullet/register_types.cpp b/modules/bullet/register_types.cpp index b75f7464ab..a76b0438b4 100644 --- a/modules/bullet/register_types.cpp +++ b/modules/bullet/register_types.cpp @@ -32,6 +32,7 @@ #include "bullet_physics_server.h" #include "class_db.h" +#include "project_settings.h" /** @author AndreaCatania @@ -47,6 +48,9 @@ void register_bullet_types() { #ifndef _3D_DISABLED PhysicsServerManager::register_server("Bullet", &_createBulletPhysicsCallback); PhysicsServerManager::set_default_server("Bullet", 1); + + GLOBAL_DEF("physics/3d/active_soft_world", true); + ProjectSettings::get_singleton()->set_custom_property_info("physics/3d/active_soft_world", PropertyInfo(Variant::BOOL, "physics/3d/active_soft_world")); #endif } -- cgit v1.2.3