mirror of
https://github.com/Relintai/voxelman.git
synced 2025-04-13 21:00:47 +02:00
Fixed compile for recent versions of 3.x. Closes #4, thanks!
This commit is contained in:
parent
9253cc53c6
commit
9ea3cf8de2
@ -330,12 +330,21 @@ void VoxelWorldEditor::_bind_methods() {
|
|||||||
void VoxelWorldEditorPlugin::_notification(int p_what) {
|
void VoxelWorldEditorPlugin::_notification(int p_what) {
|
||||||
if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) {
|
if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) {
|
||||||
switch ((int)EditorSettings::get_singleton()->get("editors/voxelman/editor_side")) {
|
switch ((int)EditorSettings::get_singleton()->get("editors/voxelman/editor_side")) {
|
||||||
|
#if VERSION_MAJOR <= 3 && VERSION_MINOR < 5
|
||||||
case 0: { // Left.
|
case 0: { // Left.
|
||||||
SpatialEditor::get_singleton()->get_palette_split()->move_child(voxel_world_editor, 0);
|
SpatialEditor::get_singleton()->get_palette_split()->move_child(voxel_world_editor, 0);
|
||||||
} break;
|
} break;
|
||||||
case 1: { // Right.
|
case 1: { // Right.
|
||||||
SpatialEditor::get_singleton()->get_palette_split()->move_child(voxel_world_editor, 1);
|
SpatialEditor::get_singleton()->get_palette_split()->move_child(voxel_world_editor, 1);
|
||||||
} break;
|
} break;
|
||||||
|
#else
|
||||||
|
case 0: { // Left.
|
||||||
|
SpatialEditor::get_singleton()->move_control_to_left_panel(voxel_world_editor);
|
||||||
|
} break;
|
||||||
|
case 1: { // Right.
|
||||||
|
SpatialEditor::get_singleton()->move_control_to_right_panel(voxel_world_editor);
|
||||||
|
} break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user