Fix #880 Armor (Main) skin template missing hat layer
This commit is contained in:
parent
0b472e6964
commit
23419d7945
@ -106,13 +106,6 @@ const codec = new Codec('skin_model', {
|
|||||||
cg.addTo(group)
|
cg.addTo(group)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (b.locators) {
|
|
||||||
for (var key in b.locators) {
|
|
||||||
var coords = b.locators[key];
|
|
||||||
coords[0] *= -1
|
|
||||||
var locator = new Locator({from: coords, name: key}).addTo(group).init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var parent_group = 'root';
|
var parent_group = 'root';
|
||||||
if (b.parent) {
|
if (b.parent) {
|
||||||
if (bones[b.parent]) {
|
if (bones[b.parent]) {
|
||||||
@ -140,6 +133,11 @@ const codec = new Codec('skin_model', {
|
|||||||
layer_template
|
layer_template
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
for (var index in template_cubes) {
|
||||||
|
if (template_cubes[index].visibility === false) {
|
||||||
|
Cube.all[index].visibility = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
texture.load_callback = function() {
|
texture.load_callback = function() {
|
||||||
Modes.options.paint.select();
|
Modes.options.paint.select();
|
||||||
}
|
}
|
||||||
@ -148,6 +146,7 @@ const codec = new Codec('skin_model', {
|
|||||||
}
|
}
|
||||||
loadTextureDraggable()
|
loadTextureDraggable()
|
||||||
Canvas.updateAllBones()
|
Canvas.updateAllBones()
|
||||||
|
Canvas.updateVisibility()
|
||||||
setProjectTitle()
|
setProjectTitle()
|
||||||
updateSelection()
|
updateSelection()
|
||||||
EditSession.initNewModel()
|
EditSession.initNewModel()
|
||||||
@ -629,7 +628,8 @@ skin_presets.armor_main = {
|
|||||||
"pivot": [0, 24, 0],
|
"pivot": [0, 24, 0],
|
||||||
"pose": [-6, 5, 0],
|
"pose": [-6, 5, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Helmet", "origin": [-4, 24, -4], "size": [8, 8, 8], "uv": [0, 0], "inflate": 1, "layer": true}
|
{"name": "Helmet", "origin": [-4, 24, -4], "size": [8, 8, 8], "uv": [0, 0], "inflate": 1},
|
||||||
|
{"name": "Hat Layer", "visibility": false, "origin": [-4, 24, -4], "size": [8, 8, 8], "uv": [32, 0], "inflate": 1.5, "layer": true}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -637,7 +637,7 @@ skin_presets.armor_main = {
|
|||||||
"color": 3,
|
"color": 3,
|
||||||
"pivot": [0, 24, 0],
|
"pivot": [0, 24, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Chestplate", "origin": [-4, 12, -2], "size": [8, 12, 4], "uv": [16, 16], "inflate": 1.01, "layer": true}
|
{"name": "Chestplate", "origin": [-4, 12, -2], "size": [8, 12, 4], "uv": [16, 16], "inflate": 1.01}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -646,7 +646,7 @@ skin_presets.armor_main = {
|
|||||||
"pivot": [-5, 22, 0],
|
"pivot": [-5, 22, 0],
|
||||||
"pose": [-10, 0, 0],
|
"pose": [-10, 0, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Right Arm Armor", "origin": [-8, 12, -2], "size": [4, 12, 4], "uv": [40, 16], "inflate": 1, "layer": true}
|
{"name": "Right Arm Armor", "origin": [-8, 12, -2], "size": [4, 12, 4], "uv": [40, 16], "inflate": 1}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -655,7 +655,7 @@ skin_presets.armor_main = {
|
|||||||
"pivot": [5, 22, 0],
|
"pivot": [5, 22, 0],
|
||||||
"pose": [12, 0, 0],
|
"pose": [12, 0, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Left Arm Armor", "origin": [4, 12, -2], "size": [4, 12, 4], "uv": [40, 16], "inflate": 1, "layer": true, "mirror": true}
|
{"name": "Left Arm Armor", "origin": [4, 12, -2], "size": [4, 12, 4], "uv": [40, 16], "inflate": 1, "mirror": true}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -664,7 +664,7 @@ skin_presets.armor_main = {
|
|||||||
"pivot": [-1.9, 12, 0],
|
"pivot": [-1.9, 12, 0],
|
||||||
"pose": [11, 0, 2],
|
"pose": [11, 0, 2],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Right Boot", "origin": [-3.9, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 1.0, "layer": true}
|
{"name": "Right Boot", "origin": [-3.9, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 1.0}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -673,7 +673,7 @@ skin_presets.armor_main = {
|
|||||||
"pivot": [1.9, 12, 0],
|
"pivot": [1.9, 12, 0],
|
||||||
"pose": [-10, 0, -2],
|
"pose": [-10, 0, -2],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Left Boot", "origin": [-0.1, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 1.0, "layer": true, "mirror": true}
|
{"name": "Left Boot", "origin": [-0.1, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 1.0, "mirror": true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -692,7 +692,7 @@ skin_presets.armor_leggings = {
|
|||||||
"color": 3,
|
"color": 3,
|
||||||
"pivot": [0, 24, 0],
|
"pivot": [0, 24, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Belt", "origin": [-4, 12, -2], "size": [8, 12, 4], "uv": [16, 16], "inflate": 0.51, "layer": true}
|
{"name": "Belt", "origin": [-4, 12, -2], "size": [8, 12, 4], "uv": [16, 16], "inflate": 0.51}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -701,7 +701,7 @@ skin_presets.armor_leggings = {
|
|||||||
"pivot": [-1.9, 12, 0],
|
"pivot": [-1.9, 12, 0],
|
||||||
"pose": [11, 0, 2],
|
"pose": [11, 0, 2],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Right Leg Armor", "origin": [-3.9, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 0.5, "layer": true}
|
{"name": "Right Leg Armor", "origin": [-3.9, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 0.5}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -710,7 +710,7 @@ skin_presets.armor_leggings = {
|
|||||||
"pivot": [1.9, 12, 0],
|
"pivot": [1.9, 12, 0],
|
||||||
"pose": [-10, 0, -2],
|
"pose": [-10, 0, -2],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"name": "Left Leg Armor", "origin": [-0.1, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 0.5, "layer": true, "mirror": true}
|
{"name": "Left Leg Armor", "origin": [-0.1, 0, -2], "size": [4, 12, 4], "uv": [0, 16], "inflate": 0.5, "mirror": true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user