• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscapheguic翻訳omegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

Commit MetaInfo

Revisiond0a41e897a200707a9d08a3b86be8f5a8d34bd1a (tree)
Time2013-11-10 06:08:41
AuthorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Fix enter key action to keep interpolation data.

Change Summary

Incremental Difference

Binary files a/MMM_GraphEditor.v11.suo and b/MMM_GraphEditor.v11.suo differ
--- a/MMM_GraphEditor/GraphPort.cs
+++ b/MMM_GraphEditor/GraphPort.cs
@@ -253,6 +253,19 @@ namespace MMM_GraphEditor
253253 if (target_bone == null || target_layer == null) break;
254254 MotionData cur_motion = target_layer.CurrentLocalMotion;
255255 MotionFrameData fd = new MotionFrameData(scene.MarkerPosition, cur_motion.Move, cur_motion.Rotation);
256+ foreach (MotionFrameData orig_fd in target_layer.Frames)
257+ {
258+ if (orig_fd.FrameNumber != scene.MarkerPosition) continue;
259+ fd.InterpolRA = orig_fd.InterpolRA;
260+ fd.InterpolRB = orig_fd.InterpolRB;
261+ fd.InterpolXA = orig_fd.InterpolXA;
262+ fd.InterpolXB = orig_fd.InterpolXB;
263+ fd.InterpolYA = orig_fd.InterpolYA;
264+ fd.InterpolYB = orig_fd.InterpolYB;
265+ fd.InterpolZA = orig_fd.InterpolZA;
266+ fd.InterpolZB = orig_fd.InterpolZB;
267+ break;
268+ }
256269 target_layer.Frames.AddKeyFrame(fd);
257270 break;
258271 default: