リビジョン | 723d56cc6236452bc0f5e8cd0d6f0035f6e64198 (tree) |
---|---|
日時 | 2013-11-09 04:16:14 |
作者 | HMML <hmml3939@gmai...> |
コミッター | HMML |
Use current local motion for edit initial motion.
@@ -158,6 +158,12 @@ namespace MMM_GraphEditor | ||
158 | 158 | bool is_rot_modified = false; |
159 | 159 | Vector3 rot_axis = new Vector3(0, 0, 0); |
160 | 160 | |
161 | + if (scene.MarkerPosition == o_mfd.FrameNumber) | |
162 | + { | |
163 | + pos = target_layer.CurrentLocalMotion.Move; | |
164 | + rot = target_layer.CurrentLocalMotion.Rotation; | |
165 | + } | |
166 | + | |
161 | 167 | switch (key_move_target.Type) |
162 | 168 | { |
163 | 169 | case IDX_POS_X: |
@@ -219,7 +225,7 @@ namespace MMM_GraphEditor | ||
219 | 225 | target_layer.Frames.AddKeyFrame(mfd); |
220 | 226 | |
221 | 227 | // TODO: reset current motion always!!! |
222 | - if (scene.MarkerPosition == mfd.FrameNumber) | |
228 | + if (scene.MarkerPosition == o_mfd.FrameNumber) | |
223 | 229 | { |
224 | 230 | target_layer.CurrentLocalMotion = new MotionData(pos, rot); |
225 | 231 | } |