Merge pull request #65249 from Chaosus/revert_array_param
This commit is contained in:
commit
3fe3c4399b
3 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@
|
||||||
<method name="add_surface_from_arrays">
|
<method name="add_surface_from_arrays">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<param index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" />
|
<param index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" />
|
||||||
<param index="1" name="arrays" type="Array[]" />
|
<param index="1" name="arrays" type="Array" />
|
||||||
<param index="2" name="blend_shapes" type="Array[]" default="[]" />
|
<param index="2" name="blend_shapes" type="Array[]" default="[]" />
|
||||||
<param index="3" name="lods" type="Dictionary" default="{}" />
|
<param index="3" name="lods" type="Dictionary" default="{}" />
|
||||||
<param index="4" name="compress_flags" type="int" default="0" />
|
<param index="4" name="compress_flags" type="int" default="0" />
|
||||||
|
|
|
@ -1614,7 +1614,7 @@ void ArrayMesh::add_surface(uint32_t p_format, PrimitiveType p_primitive, const
|
||||||
emit_changed();
|
emit_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArrayMesh::add_surface_from_arrays(PrimitiveType p_primitive, const TypedArray<Array> &p_arrays, const TypedArray<Array> &p_blend_shapes, const Dictionary &p_lods, uint32_t p_flags) {
|
void ArrayMesh::add_surface_from_arrays(PrimitiveType p_primitive, const Array &p_arrays, const TypedArray<Array> &p_blend_shapes, const Dictionary &p_lods, uint32_t p_flags) {
|
||||||
ERR_FAIL_COND(p_arrays.size() != ARRAY_MAX);
|
ERR_FAIL_COND(p_arrays.size() != ARRAY_MAX);
|
||||||
|
|
||||||
RS::SurfaceData surface;
|
RS::SurfaceData surface;
|
||||||
|
|
|
@ -265,7 +265,7 @@ protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void add_surface_from_arrays(PrimitiveType p_primitive, const TypedArray<Array> &p_arrays, const TypedArray<Array> &p_blend_shapes = TypedArray<Array>(), const Dictionary &p_lods = Dictionary(), uint32_t p_flags = 0);
|
void add_surface_from_arrays(PrimitiveType p_primitive, const Array &p_arrays, const TypedArray<Array> &p_blend_shapes = TypedArray<Array>(), const Dictionary &p_lods = Dictionary(), uint32_t p_flags = 0);
|
||||||
|
|
||||||
void add_surface(uint32_t p_format, PrimitiveType p_primitive, const Vector<uint8_t> &p_array, const Vector<uint8_t> &p_attribute_array, const Vector<uint8_t> &p_skin_array, int p_vertex_count, const Vector<uint8_t> &p_index_array, int p_index_count, const AABB &p_aabb, const Vector<uint8_t> &p_blend_shape_data = Vector<uint8_t>(), const Vector<AABB> &p_bone_aabbs = Vector<AABB>(), const Vector<RS::SurfaceData::LOD> &p_lods = Vector<RS::SurfaceData::LOD>());
|
void add_surface(uint32_t p_format, PrimitiveType p_primitive, const Vector<uint8_t> &p_array, const Vector<uint8_t> &p_attribute_array, const Vector<uint8_t> &p_skin_array, int p_vertex_count, const Vector<uint8_t> &p_index_array, int p_index_count, const AABB &p_aabb, const Vector<uint8_t> &p_blend_shape_data = Vector<uint8_t>(), const Vector<AABB> &p_bone_aabbs = Vector<AABB>(), const Vector<RS::SurfaceData::LOD> &p_lods = Vector<RS::SurfaceData::LOD>());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue