瀏覽代碼

Warn about plane shape usage, closes #26503

Juan Linietsky 6 年之前
父節點
當前提交
9dd9737cb4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      scene/3d/collision_shape.cpp

+ 4 - 0
scene/3d/collision_shape.cpp

@@ -124,6 +124,10 @@ String CollisionShape::get_configuration_warning() const {
 		return TTR("A shape must be provided for CollisionShape to function. Please create a shape resource for it!");
 		return TTR("A shape must be provided for CollisionShape to function. Please create a shape resource for it!");
 	}
 	}
 
 
+	if (shape->is_class("PlaneShape")) {
+		return TTR("Plane shapes don't work well and will be removed in future versions. Please don't use them.");
+	}
+
 	return String();
 	return String();
 }
 }