Fox compile for 3.x.

This commit is contained in:
Relintai 2022-02-08 12:13:26 +01:00
parent f256229139
commit 6e395b5a05
3 changed files with 5 additions and 5 deletions

View File

@ -172,7 +172,7 @@ typedef class RenderingServer VS;
call(#func, ##__VA_ARGS__);
#define RETURN_CALL(ret_type, func) \
return call(#func, ##__VA_ARGS__);
return call(#func);
#define RETURN_CALLP(ret_type, func, ...) \
return call(#func, ##__VA_ARGS__);
@ -184,7 +184,7 @@ typedef class RenderingServer VS;
ret_var = call(#func, ##__VA_ARGS__);
#define RETURN_CALLD(ret_type, def_val, func) \
return call(#func, ##__VA_ARGS__);
return call(#func);
#define RETURN_CALLPD(ret_type, def_val, func, ...) \
return call(#func, ##__VA_ARGS__);

View File

@ -48,11 +48,11 @@ bool TerraWorldEditor::forward_spatial_input_event(Camera *p_camera, const Ref<I
return false;
}
Ref<TerramanLibrary> mb = p_event;
Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid()) {
if (mb->is_pressed()) {
Ref<VoxelmanLibrary> lib = _world->get_library();
Ref<TerramanLibrary> lib = _world->get_library();
if (!lib.is_valid())
return false;

View File

@ -33,7 +33,7 @@ SOFTWARE.
typedef class Transform3D Transform;
#endif
class VoxelWorld;
class TerraWorld;
class SpatialEditorPlugin;
class TerraWorldEditor : public PanelContainer {