Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to save/ load paths during runtime (will be deleted aft…
…er restart) Fixed being unable to remove points
- Loading branch information
1 parent
f2be844
commit c9a3001
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.creativemd.cmdcam.utils; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import com.creativemd.cmdcam.CMDCam; | ||
|
||
public class CMDPath { | ||
|
||
public int loop; | ||
public long duration; | ||
public String path; | ||
public String movement; | ||
public Object target; | ||
public List<CamPoint> points; | ||
public double cameraFollowSpeed; | ||
|
||
public CMDPath() { | ||
this.loop = CMDCam.lastLoop; | ||
this.duration = CMDCam.lastDuration; | ||
this.path = CMDCam.lastPath; | ||
this.movement = CMDCam.lastMovement; | ||
this.target = CMDCam.target; | ||
this.points = new ArrayList<>(CMDCam.points); | ||
this.cameraFollowSpeed = CMDCam.cameraFollowSpeed; | ||
} | ||
|
||
public void load() | ||
{ | ||
CMDCam.lastLoop = this.loop; | ||
CMDCam.lastDuration = this.duration; | ||
CMDCam.lastPath = this.path; | ||
CMDCam.lastMovement = this.movement; | ||
CMDCam.target = this.target; | ||
CMDCam.points = new ArrayList<>(this.points); | ||
CMDCam.cameraFollowSpeed = this.cameraFollowSpeed; | ||
} | ||
} |