diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/datapacker/main.cpp | 8 | ||||
| -rw-r--r-- | tools/validator/validator.cpp | 15 |
2 files changed, 22 insertions, 1 deletions
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index 596259b..33e4cfe 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp | |||
| @@ -239,7 +239,13 @@ class DataPacker { | |||
| 239 | Port& port = *container_.all_objects().mutable_ports(port_id); | 239 | Port& port = *container_.all_objects().mutable_ports(port_id); |
| 240 | 240 | ||
| 241 | port.set_path(h_port.path()); | 241 | port.set_path(h_port.path()); |
| 242 | port.set_orientation(h_port.orientation()); | 242 | |
| 243 | if (h_port.no_shuffle()) { | ||
| 244 | port.set_no_shuffle(h_port.no_shuffle()); | ||
| 245 | } else { | ||
| 246 | *port.mutable_destination() = h_port.destination(); | ||
| 247 | port.set_rotation(h_port.rotation()); | ||
| 248 | } | ||
| 243 | 249 | ||
| 244 | // Setting this explicitly because the Godot protobuf doesn't support | 250 | // Setting this explicitly because the Godot protobuf doesn't support |
| 245 | // custom defaults. | 251 | // custom defaults. |
| diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index dd41f5c..93efdc6 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
| @@ -273,6 +273,21 @@ class Validator { | |||
| 273 | } | 273 | } |
| 274 | } | 274 | } |
| 275 | } | 275 | } |
| 276 | |||
| 277 | for (const HumanPort& port : port_info.definitions) { | ||
| 278 | if (!port.no_shuffle()) { | ||
| 279 | if (!port.has_destination()) { | ||
| 280 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
| 281 | << " is shuffleable and missing a destination." | ||
| 282 | << std::endl; | ||
| 283 | } | ||
| 284 | if (!port.has_rotation()) { | ||
| 285 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
| 286 | << " is shuffleable and missing a rotation." | ||
| 287 | << std::endl; | ||
| 288 | } | ||
| 289 | } | ||
| 290 | } | ||
| 276 | } | 291 | } |
| 277 | 292 | ||
| 278 | void ValidatePainting(const PaintingIdentifier& painting_identifier, | 293 | void ValidatePainting(const PaintingIdentifier& painting_identifier, |
