-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed a bug that caused trails to not inherit attributes correctly #353
Changes from 1 commit
a087e5e
7364bd8
631ba3c
f7bcbd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/xml_category_inheritance/output_proto/markers.bin.textproto._old 2024-09-12 02:23:33.508679940 +0000
+++ xml_converter/integration_tests/test_cases/xml_category_inheritance/output_proto/markers.bin.textproto._new 2024-09-12 02:23:33.516679920 +0000
@@ -29,6 +29,7 @@
children {
children {
icon {
+ texture_id: 1
map_id: 50
position {
x: 111
@@ -36,9 +37,26 @@
z: 333
}
}
+ trail {
+ texture_id: 1
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 1
+ }
id: "p,T\324\205\337\210\244"
}
icon {
+ texture_id: 1
map_id: 50
position {
x: 111
@@ -48,6 +66,7 @@
id: "\270\232\334\270\267xj\317"
}
icon {
+ texture_id: 1
map_id: 50
position {
x: 111
@@ -55,3 +74,8 @@
}
id: ",\222\247\355j@\016:"
}
+textures {
+}
+textures {
+ filepath: "texture_one.png"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/xml_category_inheritance/output_proto/markers.bin.textproto._old 2024-09-19 23:40:11.478056205 +0000
+++ xml_converter/integration_tests/test_cases/xml_category_inheritance/output_proto/markers.bin.textproto._new 2024-09-19 23:40:11.485056202 +0000
@@ -55,3 +55,30 @@
}
id: ",\222\247\355j@\016:"
}
+category {
+ children {
+ trail {
+ texture_id: 1
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 1
+ }
+ id: "\361@\242\320/\212\204\001"
+ }
+ id: "s\357U\206f\255\240\345"
+}
+textures {
+}
+textures {
+ filepath: "texture_one.png"
+}
|
This file was deleted.
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about spiting the category into two instead of adding arbitrary arguments that correspond to trails vs icons. This way we wont accidentally run into this issue in the future if new required attributes are added to the schema.
To me it seems like this solution as written is a "if we add these irrelevant fields it happens to test the thing we want".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't considered the required attributes.
My thought in adding them to this category was to ensure that the attributes were sorted correctly into either Icons or Trails.