Allow to compile templates without physics servers
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
|
||||
#include "physics_material.h"
|
||||
|
||||
#if !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
||||
void PhysicsMaterial::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_friction", "friction"), &PhysicsMaterial::set_friction);
|
||||
ClassDB::bind_method(D_METHOD("get_friction"), &PhysicsMaterial::get_friction);
|
||||
@ -68,3 +69,4 @@ void PhysicsMaterial::set_absorbent(bool p_val) {
|
||||
absorbent = p_val;
|
||||
emit_changed();
|
||||
}
|
||||
#endif // !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
||||
|
||||
Reference in New Issue
Block a user