mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
TODO added: when the transform joint is "ALL"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user