mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Added a patch for voxelman to make the spatial editor plugin work again, if the skeleton editor plugin patch is applied, as it changes forward_spatitial_gui_input. It gets applied automatically after the skeleton editor plugin patch.
This commit is contained in:
parent
fe4ac5cf74
commit
81a9e44ee0
21
SConstruct
21
SConstruct
@ -453,7 +453,7 @@ if len(sys.argv) > 1:
|
|||||||
full_path = cwd + '/engine/'
|
full_path = cwd + '/engine/'
|
||||||
|
|
||||||
if not os.path.isdir(full_path):
|
if not os.path.isdir(full_path):
|
||||||
print('engine directory doesnt exists.')
|
print('engine directory does not exists.')
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
os.chdir(full_path)
|
os.chdir(full_path)
|
||||||
@ -463,8 +463,23 @@ if len(sys.argv) > 1:
|
|||||||
if 's' in arg:
|
if 's' in arg:
|
||||||
subprocess.call('git apply --index ../patches/custom_skeleton_3d_editor_plugin.patch', shell=True)
|
subprocess.call('git apply --index ../patches/custom_skeleton_3d_editor_plugin.patch', shell=True)
|
||||||
|
|
||||||
#unstage all files
|
#unstage all files
|
||||||
subprocess.call('git reset', shell=True)
|
subprocess.call('git reset', shell=True)
|
||||||
|
|
||||||
|
vman_full_path = cwd + '/engine/modules/voxelman/'
|
||||||
|
|
||||||
|
#also patch voxelman as the plugin changes forward_spatial_gui_input's definition
|
||||||
|
if os.path.isdir(vman_full_path):
|
||||||
|
os.chdir(vman_full_path)
|
||||||
|
|
||||||
|
subprocess.call('git apply --index ../../../patches/fix-voxel-editor-after-the-skeleton-editor-patch.patch', shell=True)
|
||||||
|
|
||||||
|
#unstage all files
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
else:
|
||||||
|
print('Voxelman directory does not exists, skipping patch.')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
From e99fc279858d939b833bdda85fd664ef4c335b09 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Relintai <relintai@protonmail.com>
|
||||||
|
Date: Tue, 23 Feb 2021 10:14:50 +0100
|
||||||
|
Subject: [PATCH] Fix voxel editor after the skeleton editor patch.
|
||||||
|
|
||||||
|
---
|
||||||
|
world/voxel_world_editor.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/world/voxel_world_editor.h b/world/voxel_world_editor.h
|
||||||
|
index 7195940..9ae9717 100644
|
||||||
|
--- a/world/voxel_world_editor.h
|
||||||
|
+++ b/world/voxel_world_editor.h
|
||||||
|
@@ -91,7 +91,7 @@ protected:
|
||||||
|
void _notification(int p_what);
|
||||||
|
|
||||||
|
public:
|
||||||
|
- virtual bool forward_spatial_gui_input(Camera *p_camera, const Ref<InputEvent> &p_event) { return voxel_world_editor->forward_spatial_input_event(p_camera, p_event); }
|
||||||
|
+ virtual bool forward_spatial_gui_input(int p_index, Camera *p_camera, const Ref<InputEvent> &p_event) { return voxel_world_editor->forward_spatial_input_event(p_camera, p_event); }
|
||||||
|
virtual String get_name() const { return "VoxelWorldEditor"; }
|
||||||
|
bool has_main_screen() const { return false; }
|
||||||
|
virtual void edit(Object *p_object);
|
||||||
|
--
|
||||||
|
2.30.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user