diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-01 14:51:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 14:51:29 +0200 |
commit | 33a0fb6e02ce9ee5d2fe97377a3ec84591b59f7c (patch) | |
tree | 1b770897dab465d168f705fc099bbd38d3e586d5 /scene/resources/primitive_meshes.cpp | |
parent | dea84c9d28efff49054d3ecb2e5f119982cf5845 (diff) | |
parent | fcf8071ec95fc47dd18eba138f528cbb1eb0ac47 (diff) |
Merge pull request #48345 from madmiraal/fix-48242-docs
Fix documentation following implementation of particle trails
Diffstat (limited to 'scene/resources/primitive_meshes.cpp')
-rw-r--r-- | scene/resources/primitive_meshes.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scene/resources/primitive_meshes.cpp b/scene/resources/primitive_meshes.cpp index 78cbb5d90f..c3d84aeda2 100644 --- a/scene/resources/primitive_meshes.cpp +++ b/scene/resources/primitive_meshes.cpp @@ -2075,16 +2075,14 @@ void RibbonTrailMesh::_bind_methods() { ClassDB::bind_method(D_METHOD("get_shape"), &RibbonTrailMesh::get_shape); ADD_PROPERTY(PropertyInfo(Variant::INT, "shape", PROPERTY_HINT_ENUM, "Flat,Cross"), "set_shape", "get_shape"); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "size", PROPERTY_HINT_RANGE, "0.001,100.0,0.001,or_greater"), "set_size", "get_size"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "sections", PROPERTY_HINT_RANGE, "2,128,1"), "set_sections", "get_sections"); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "section_length", PROPERTY_HINT_RANGE, "0.001,1024.0,0.001,or_greater"), "set_section_length", "get_section_length"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "section_segments", PROPERTY_HINT_RANGE, "1,128,1"), "set_section_segments", "get_section_segments"); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve"), "set_curve", "get_curve"); + + BIND_ENUM_CONSTANT(SHAPE_FLAT) + BIND_ENUM_CONSTANT(SHAPE_CROSS) } RibbonTrailMesh::RibbonTrailMesh() { |