added place player functionality
This commit is contained in:
1 parent
7a608f3c36
commit
97f875cab8
1 file changed
+4
-2
@@ -15,7 +15,7 @@ __command() ->
|
|||||||
print(' "/camera delete_point" - removes current keypoint');
|
print(' "/camera delete_point" - removes current keypoint');
|
||||||
print(' "/camera trim_path" - removes all keypoints from selected');
|
print(' "/camera trim_path" - removes all keypoints from selected');
|
||||||
print('');
|
print('');
|
||||||
print(' "/camera store <name>"');
|
print(' "/camera save_as <name>"');
|
||||||
print(' "/camera load <name>"');
|
print(' "/camera load <name>"');
|
||||||
print(' - stores and loads paths from files in /scripts folder');
|
print(' - stores and loads paths from files in /scripts folder');
|
||||||
print('');
|
print('');
|
||||||
@@ -597,7 +597,7 @@ __interpolator_cr(from_index, point) ->
|
|||||||
);
|
);
|
||||||
|
|
||||||
// store current path in a world file
|
// store current path in a world file
|
||||||
store(file) ->
|
save_as(file) ->
|
||||||
(
|
(
|
||||||
if (!global_points, exit('No path to save'));
|
if (!global_points, exit('No path to save'));
|
||||||
path_nbt = nbt('{}');
|
path_nbt = nbt('{}');
|
||||||
@@ -609,6 +609,7 @@ store(file) ->
|
|||||||
put(path_nbt:'points', point_nbt, _i);
|
put(path_nbt:'points', point_nbt, _i);
|
||||||
);
|
);
|
||||||
store_app_data(path_nbt, file);
|
store_app_data(path_nbt, file);
|
||||||
|
'stored path as '+file;
|
||||||
);
|
);
|
||||||
|
|
||||||
// loads path under the local file that
|
// loads path under the local file that
|
||||||
@@ -621,6 +622,7 @@ load(file) ->
|
|||||||
exit('Incorrect data for :'+file);
|
exit('Incorrect data for :'+file);
|
||||||
);
|
);
|
||||||
__start_with(_(outer(new_points)) -> new_points);
|
__start_with(_(outer(new_points)) -> new_points);
|
||||||
|
'loaded '+file;
|
||||||
);
|
);
|
||||||
|
|
||||||
// when closing - shut-down visualization and playback threads
|
// when closing - shut-down visualization and playback threads
|
||||||
|
|||||||
Reference in new issue
Block a user