You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #89270 from Repiteo/enforce-typename-in-templates
Enforce template syntax `typename` over `class`
This commit is contained in:
@@ -303,10 +303,10 @@ public:
|
||||
ResourceImporterScene(bool p_animation_import = false, bool p_singleton = false);
|
||||
~ResourceImporterScene();
|
||||
|
||||
template <class M>
|
||||
template <typename M>
|
||||
static Vector<Ref<Shape3D>> get_collision_shapes(const Ref<ImporterMesh> &p_mesh, const M &p_options, float p_applied_root_scale);
|
||||
|
||||
template <class M>
|
||||
template <typename M>
|
||||
static Transform3D get_collision_shapes_transform(const M &p_options);
|
||||
};
|
||||
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
virtual Node *import_scene(const String &p_path, uint32_t p_flags, const HashMap<StringName, Variant> &p_options, List<String> *r_missing_deps, Error *r_err = nullptr) override;
|
||||
};
|
||||
|
||||
template <class M>
|
||||
template <typename M>
|
||||
Vector<Ref<Shape3D>> ResourceImporterScene::get_collision_shapes(const Ref<ImporterMesh> &p_mesh, const M &p_options, float p_applied_root_scale) {
|
||||
ERR_FAIL_COND_V(p_mesh.is_null(), Vector<Ref<Shape3D>>());
|
||||
ShapeType generate_shape_type = SHAPE_TYPE_DECOMPOSE_CONVEX;
|
||||
@@ -476,7 +476,7 @@ Vector<Ref<Shape3D>> ResourceImporterScene::get_collision_shapes(const Ref<Impor
|
||||
return Vector<Ref<Shape3D>>();
|
||||
}
|
||||
|
||||
template <class M>
|
||||
template <typename M>
|
||||
Transform3D ResourceImporterScene::get_collision_shapes_transform(const M &p_options) {
|
||||
Transform3D transform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user