File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ interface ISerializedNode {
49
49
entity_type ?: string
50
50
custom_model_data ?: number
51
51
resource_location ?: string
52
+ bounding_box ?: THREE . Box3
52
53
}
53
54
54
55
interface ISerializedVariant {
@@ -109,6 +110,7 @@ function serializeNodeMap(
109
110
case 'bone' : {
110
111
const custom_model_data = node . customModelData
111
112
const resource_location = node . resourceLocation
113
+ const bounding_box = node . boundingBox
112
114
113
115
serializedNodeMap [ uuid ] = {
114
116
type,
@@ -117,6 +119,7 @@ function serializeNodeMap(
117
119
nbt : node . nbt ,
118
120
custom_model_data,
119
121
resource_location,
122
+ bounding_box : bounding_box ,
120
123
}
121
124
122
125
break
Original file line number Diff line number Diff line change 81
81
},
82
82
"entity_type" : {
83
83
"type" : " string"
84
+ },
85
+ "bounding_box" : {
86
+ "type" : " object" ,
87
+ "description" : " The bounding box of the bone." ,
88
+ "properties" : {
89
+ "min" : {
90
+ "type" : " object" ,
91
+ "properties" : {
92
+ "x" : {
93
+ "type" : " number"
94
+ },
95
+ "y" : {
96
+ "type" : " number"
97
+ },
98
+ "z" : {
99
+ "type" : " number"
100
+ }
101
+ }
102
+ },
103
+ "max" : {
104
+ "type" : " object" ,
105
+ "properties" : {
106
+ "x" : {
107
+ "type" : " number"
108
+ },
109
+ "y" : {
110
+ "type" : " number"
111
+ },
112
+ "z" : {
113
+ "type" : " number"
114
+ }
115
+ }
116
+ }
117
+ }
84
118
}
85
119
}
86
120
},
You can’t perform that action at this time.
0 commit comments