1793 Commits

Author SHA1 Message Date
Marc Gilleron
cc734f7676 Fix expression node not compiled correctly, outputs were not reconnected 2022-04-10 14:40:41 +01:00
Marc Gilleron
74b94da6cd Prefix include guard to prevent conflict with Godot's version 2022-04-10 14:38:04 +01:00
Marc Gilleron
19a69b059e VoxelInstancer supports VoxelTerrain, although Godot 4 multimeshes are buggy
See https://github.com/godotengine/godot/issues/56357
2022-04-09 20:40:03 +01:00
Marc Gilleron
219c7bfda3 Changed prefix of profiling macros 2022-04-09 15:33:08 +01:00
Marc Gilleron
adb2cd2fe9 Return a ref, pointer must not be null 2022-04-09 15:15:22 +01:00
Marc Gilleron
259a914cbf Return a ref instead of pointer, it must not be null 2022-04-09 15:05:04 +01:00
Marc Gilleron
ab5d3a22d3 Abstract logging for verbose print 2022-04-09 15:00:34 +01:00
Marc Gilleron
5afab83cd6 Include less things from macros.h 2022-04-09 00:53:51 +01:00
Marc Gilleron
ca83c720ff Return reference, pointer must not be null 2022-04-08 23:54:04 +01:00
Marc Gilleron
f58199e7de Added class to schedule custom tasks from scripts 2022-04-07 22:34:07 +01:00
Marc Gilleron
22f17f6294 Fix macro not usable in release builds 2022-04-07 22:33:21 +01:00
Marc Gilleron
91cbed534e Missing header for std::find 2022-04-07 21:34:05 +01:00
Marc Gilleron
a3ef02b7e6 Fix shadowing 2022-04-07 21:24:05 +01:00
Marc Gilleron
1f032d882a Fix unused variable 2022-04-07 21:14:07 +01:00
Marc Gilleron
6663fdad92 Fix signedness warning 2022-04-07 21:05:05 +01:00
Marc Gilleron
99032d460a Fix unused function GCC warning 2022-04-07 20:57:07 +01:00
Marc Gilleron
2fece1d892 VoxelGraphNodeDB::get_singleton() must not return null, changed to reference 2022-04-07 20:44:43 +01:00
Marc Gilleron
96224c2231 ProgramGraph::get_node() must not return null, changed to a reference 2022-04-07 20:35:11 +01:00
Marc Gilleron
7517ec9a10 Merge branch 'expression_node'
# Conflicts:
#	server/load_all_blocks_data_task.cpp
2022-04-07 20:18:20 +01:00
Marc Gilleron
2fba154b42 Use Powi if the power exponent in Expression is a constant positive integer 2022-04-07 20:03:21 +01:00
Marc Gilleron
c4dddaa528 Remove unused function, use & references instead of Ref<T> 2022-04-07 19:44:29 +01:00
Marc Gilleron
9cd5fe697b Moved Godot-specific utilities to godot/ folder 2022-04-07 19:34:28 +01:00
Marc Gilleron
e43f939f3c Span doesnt depend on Godot Vector 2022-04-06 23:37:57 +01:00
Marc Gilleron
5519054c01 Unify macro prefixes 2022-04-06 23:26:54 +01:00
Marc Gilleron
090d3485e5 Use unique pointers in ExpressionParser 2022-04-06 22:00:32 +01:00
Marc Gilleron
15bf2a6980 One more unused variable 2022-04-06 01:37:47 +01:00
Marc Gilleron
c9aa295b03 Fix unused variables 2022-04-06 01:31:51 +01:00
Marc Gilleron
57357df658 Fix Variant conversion for MacOS clang 2022-04-06 01:31:34 +01:00
Marc Gilleron
0e523f79fe Added functions to expression node 2022-04-06 01:13:38 +01:00
Marc Gilleron
7e03e7f384 Fix several issues with functions in expressions
- Too many arguments error
- Too few arguments error
- Expected argument error
- Unexpected closing parenthesis
2022-04-06 01:00:06 +01:00
Marc Gilleron
d26262d03c Fix include directory 2022-04-06 00:56:48 +01:00
Marc Gilleron
7a700e0567 Fix too many arguments not being handled 2022-04-06 00:08:58 +01:00
Marc Gilleron
e2bbd75cb4 Added doc about the SCons parameters 2022-04-06 00:07:14 +01:00
Marc Gilleron
0146e05c1c Document new nodes 2022-04-05 22:31:33 +01:00
Marc Gilleron
0629566330 Show expression code in the node's title 2022-04-05 22:26:26 +01:00
Marc Gilleron
092fc6db9e Fix Powi 2022-04-05 19:10:36 +01:00
Marc Gilleron
5445042f72 Use ZN_TTR 2022-04-04 23:08:59 +01:00
Marc Gilleron
4634cfac0e Merge branch 'master' into expression_node 2022-04-04 22:43:05 +01:00
Marc Gilleron
998a5f6052 Fix parentheses 2022-04-04 01:24:55 +01:00
Marc Gilleron
9c81ccc5ba Use special TTR macro for non-editor code
Because TTR is not available in non-editor builds
2022-04-04 00:20:36 +01:00
Marc Gilleron
f90960d596 Hack something to allow using different depth than default in some cases 2022-04-03 23:15:34 +01:00
Marc Gilleron
ce4224dce8 Fix VoxelMesherCubes color mode in inspector 2022-04-03 22:58:51 +01:00
Marc Gilleron
6d3b84eed5 Comments 2022-04-03 20:57:01 +01:00
Marc Gilleron
e0008d3335 Fix compilation now Godot comes with its own FastNoiseLite.
The version shipped with the module is now prefixed.
Removed usages of OpenSimplexNoise.
2022-04-03 20:07:17 +01:00
Marc Gilleron
646cbacd64 Added Expression node to VoxelGeneratorGraph. Needs polishing.
Some things to do:
- Support function calls
- Show expression in the node GUI, eventually edit it there
- Optimize power function
2022-04-03 16:43:04 +01:00
Marc Gilleron
68f8aa6092 Use larger integer type to store time 2022-04-02 19:36:21 +01:00
Marc Gilleron
fd0f524bf5 Commented unused variable for now to avoid warning 2022-03-31 22:51:48 +01:00
Marc Gilleron
0c091a5fbd Fix wrong macro 2022-03-31 22:49:53 +01:00
Marc Gilleron
ee64ce28cb Remove redundant pre-declaration 2022-03-31 22:49:25 +01:00
Marc Gilleron
dcc7d85a52 Fix Vector3i initialization from single integer 2022-03-31 22:40:39 +01:00