• 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

Revision723d56cc6236452bc0f5e8cd0d6f0035f6e64198 (tree)
Time2013-11-09 04:16:14
AuthorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Use current local motion for edit initial motion.

Change Summary

Incremental Difference

--- a/MMM_GraphEditor/GraphPort.cs
+++ b/MMM_GraphEditor/GraphPort.cs
@@ -158,6 +158,12 @@ namespace MMM_GraphEditor
158158 bool is_rot_modified = false;
159159 Vector3 rot_axis = new Vector3(0, 0, 0);
160160
161+ if (scene.MarkerPosition == o_mfd.FrameNumber)
162+ {
163+ pos = target_layer.CurrentLocalMotion.Move;
164+ rot = target_layer.CurrentLocalMotion.Rotation;
165+ }
166+
161167 switch (key_move_target.Type)
162168 {
163169 case IDX_POS_X:
@@ -219,7 +225,7 @@ namespace MMM_GraphEditor
219225 target_layer.Frames.AddKeyFrame(mfd);
220226
221227 // TODO: reset current motion always!!!
222- if (scene.MarkerPosition == mfd.FrameNumber)
228+ if (scene.MarkerPosition == o_mfd.FrameNumber)
223229 {
224230 target_layer.CurrentLocalMotion = new MotionData(pos, rot);
225231 }