aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/MapMesh.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-08 22:23:39 +0100
committer GitHub <noreply@github.com>2023-11-08 22:23:39 +0100
commitf8da0860795d273452501fa4d7fbfcc40073a884 (patch)
tree556707348d57b81f91627bb8fda5989a305c0d21 /extension/src/openvic-extension/MapMesh.cpp
parent57822949341b86649614b343afa2c740efe00ac2 (diff)
parent47fff276966d42cba6a2df9093348a5e20a37159 (diff)
Merge pull request #162 from OpenVicProject/changes
Lots of Changes
Diffstat (limited to 'extension/src/openvic-extension/MapMesh.cpp')
-rw-r--r--extension/src/openvic-extension/MapMesh.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/extension/src/openvic-extension/MapMesh.cpp b/extension/src/openvic-extension/MapMesh.cpp
index 269360a..e407391 100644
--- a/extension/src/openvic-extension/MapMesh.cpp
+++ b/extension/src/openvic-extension/MapMesh.cpp
@@ -21,10 +21,21 @@ void MapMesh::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_core_aabb"), &MapMesh::get_core_aabb);
ClassDB::bind_method(D_METHOD("is_valid_uv_coord"), &MapMesh::is_valid_uv_coord);
- ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "aspect_ratio", PROPERTY_HINT_NONE, "suffix:m"), "set_aspect_ratio", "get_aspect_ratio");
- ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "repeat_proportion", PROPERTY_HINT_NONE, "suffix:m"), "set_repeat_proportion", "get_repeat_proportion");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "subdivide_width", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_width", "get_subdivide_width");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "subdivide_depth", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_depth", "get_subdivide_depth");
+ ADD_PROPERTY(
+ PropertyInfo(Variant::FLOAT, "aspect_ratio", PROPERTY_HINT_NONE, "suffix:m"), "set_aspect_ratio", "get_aspect_ratio"
+ );
+ ADD_PROPERTY(
+ PropertyInfo(Variant::FLOAT, "repeat_proportion", PROPERTY_HINT_NONE, "suffix:m"), "set_repeat_proportion",
+ "get_repeat_proportion"
+ );
+ ADD_PROPERTY(
+ PropertyInfo(Variant::INT, "subdivide_width", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_width",
+ "get_subdivide_width"
+ );
+ ADD_PROPERTY(
+ PropertyInfo(Variant::INT, "subdivide_depth", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_depth",
+ "get_subdivide_depth"
+ );
}
void MapMesh::_request_update() {