TODO added: when the transform joint is "ALL"

This commit is contained in:
minjaesong
2019-01-06 22:45:51 +09:00
parent 344e4ebdab
commit 425cb82133
2 changed files with 7 additions and 1 deletions

View File

@@ -49,7 +49,11 @@ class ADProperties {
private val animFrameSuffixRegex = Regex("""_[0-9]+""")
private val ALL_JOINT = Joint("ALL", ADPropertyObject.Vector2i(0, 0))
private val ALL_JOINT = Joint(ALL_JOINT_SELECT_KEY, ADPropertyObject.Vector2i(0, 0))
companion object {
const val ALL_JOINT_SELECT_KEY = "ALL"
}
constructor(reader: Reader) {
javaProp.load(reader)

View File

@@ -69,6 +69,8 @@ object AssembleFrameBase {
// process transform queue
transforms.forEach { transform ->
// TODO when the transform.joint.name == ADProperties.ALL_JOINT_SELECT_KEY
val jointToMoveIndex = transformOutput.linearSearch { it.first == transform.joint.name }!!
transformOutput[jointToMoveIndex] = transformOutput[jointToMoveIndex].first to transform.getTransformVector()
}