Commit Graph

390 Commits

Author SHA1 Message Date
Wojtek Figat
3796b0ccae Revert #3117 and do it different way as some types can be valid even if different thus use internal parameter setter for type validation 2025-01-13 16:07:47 +01:00
Chandler Cox
7eb2088af0 Use Variant::CanCast() for type check. 2025-01-06 15:40:38 -06:00
Chandler Cox
88703d721b Warn if wrong type while setting material parameter. 2024-12-23 16:51:37 -06:00
Wojtek Figat
b6d2a3683c Add ButtonAttribute to display methods in editor properties panel
#1917
2024-12-06 16:10:50 +01:00
Wojtek Figat
935e25ab7d Fix compile warnings 2024-11-05 11:32:49 +01:00
Wojtek Figat
9f9564895e Fix collecting referenced asses from Animation asset
#3013
2024-10-25 19:02:31 +02:00
Wojtek Figat
207c6a0cb5 Refactor platform apis comments and cleanup a bit 2024-09-24 18:29:30 +02:00
Wojtek Figat
18dc475f40 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/UI/GUI/Common/Button.cs
2024-09-23 14:11:05 +02:00
Wojtek Figat
a367d40913 Add more contextual log printing on missing object/asset reference
#2414
2024-09-15 23:03:53 +02:00
Wojtek Figat
9daddccbed Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Editor/Modules/ContentDatabaseModule.cs
#	Source/Editor/Surface/SurfaceUtils.cs
#	Source/Editor/Windows/Assets/MaterialInstanceWindow.cs
#	Source/Engine/Foliage/Foliage.cpp
#	Source/Engine/Graphics/Models/MeshBase.h
#	Source/Engine/Tools/MaterialGenerator/MaterialGenerator.Textures.cpp
2024-09-12 13:38:20 +02:00
Wojtek Figat
0bc98a5f18 Improve asset reference debug in C# when it's empty 2024-09-12 12:41:03 +02:00
Wojtek Figat
cc01952059 Fix Visject parameter values restore after script is saved in editor by using original value diff
#2276
2024-09-11 20:44:45 +02:00
Wojtek Figat
ec412d9be0 Fix undo-redo for JsonAssetReference in Editor
#2711
2024-08-28 23:42:59 +02:00
Wojtek Figat
d0240a54c7 Add MaterialInstance.ResetParameters 2024-08-22 13:15:33 +02:00
Wojtek Figat
ce1a1d6031 Fix deploying fbx files in cooked build from ModelPrefab 2024-08-17 16:48:42 +02:00
Wojtek Figat
21b4c7c916 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-16 14:52:57 +02:00
Wojtek Figat
45e83d6d15 Add feedback from PVS (static code analyzer)
https://pvs-studio.com/en/blog/posts/cpp/1153/
2024-08-15 13:01:40 +02:00
Wojtek Figat
fbd3b9372b Fix crash when reading invalid data from file 2024-08-12 15:35:02 +02:00
Wojtek Figat
97ab8940f0 Fix bug with missing baked SDF data on save when asset data chunk memory was freed by GC 2024-08-10 20:45:59 +02:00
Wojtek Figat
0023014cc2 Add MaterialInstance.ResetParameters 2024-08-09 18:39:47 +02:00
Wojtek Figat
e44e44d317 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-05 11:08:51 +02:00
Wojtek Figat
7a89e78f43 Fix incorrect JsonAssetReference<T> serialization
#2774
2024-07-26 01:13:52 +02:00
Wojtek Figat
9f078a6e3c Fix crash when using and saving scene with Visual Script object instance which asset was deleted 2024-07-25 17:17:28 +02:00
Wojtek Figat
faf7a28cf2 Fix compilation after merge
#2714
2024-07-24 16:48:46 +02:00
Wojtek Figat
5ddf24381b Merge branch 'deprecation_messages' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-deprecation_messages 2024-07-24 16:41:49 +02:00
Wojtek Figat
b33c2b4f36 Merge remote-tracking branch 'origin/master' into 1.9 2024-07-19 00:32:54 +02:00
Wojtek Figat
d879b8e064 Add utility GetInstance method to Json Asset refs in csharp
#2774
2024-07-18 15:14:26 +02:00
Wojtek Figat
78f3248ac9 Refactor SortOrder to use int8 instead of int16 due to performance reasons (more efficent sort keys packing in rendering) 2024-06-29 13:54:02 +02:00
e08b57e814 Support custom deprecation messages in bindings generator 2024-06-17 20:43:14 +03:00
Wojtek Figat
e1bede1bf6 Merge remote-tracking branch 'origin/master' into 1.9 2024-06-13 17:07:37 +02:00
Wojtek Figat
175fd31431 Fix Delegate invoke to copy arguments values to each call instead of passing as reference 2024-06-05 18:00:00 +02:00
Wojtek Figat
53d77d3421 Add **Model SDF baking on GPU** via Compute Shader 2024-05-29 14:53:13 +02:00
Wojtek Figat
12cf7f0f92 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Flax.flaxproj
2024-05-22 16:15:14 +02:00
Wojtek Figat
cfc9f73744 Fix deadlock between content storage and asset that is being updated during load
#2621
2024-05-20 14:22:03 +02:00
Wojtek Figat
58f95d6ce3 Simplify 6f2bd0e932 2024-05-15 23:49:46 +02:00
Wojtek Figat
97be8ee8cc Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/Content/Storage/FlaxStorage.cpp
#	Source/Engine/Renderer/GBufferPass.cpp
2024-05-15 23:49:05 +02:00
Wojtek Figat
6f2bd0e932 Another attempt on 6a883bc7c6 2024-05-15 11:22:07 +02:00
Wojtek Figat
6a883bc7c6 Revert file handles bug 2024-05-14 09:03:52 +02:00
Wojtek Figat
44006dd533 Various code improvements 2024-05-09 18:59:09 +02:00
Wojtek Figat
5029584a9f Fix crash when Visual Script event binding instance is invalid
#2548
2024-05-09 10:17:23 +02:00
Wojtek Figat
33202a74b0 Fix 2024-05-08 19:15:25 +02:00
Wojtek Figat
481a6de821 Add support for cooking raw files referenced by assets 2024-05-08 17:27:46 +02:00
Wojtek Figat
66b828ae92 Refactor Asset::GetReferences to support file path references 2024-05-08 15:54:37 +02:00
Wojtek Figat
cdeb9a3b15 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Content/Editor/Camera/M_Camera.flax
#	Content/Editor/CubeTexturePreviewMaterial.flax
#	Content/Editor/DebugMaterials/DDGIDebugProbes.flax
#	Content/Editor/DebugMaterials/SingleColor/Decal.flax
#	Content/Editor/DebugMaterials/SingleColor/Particle.flax
#	Content/Editor/DebugMaterials/SingleColor/Surface.flax
#	Content/Editor/DebugMaterials/SingleColor/SurfaceAdditive.flax
#	Content/Editor/DebugMaterials/SingleColor/Terrain.flax
#	Content/Editor/DefaultFontMaterial.flax
#	Content/Editor/Gizmo/FoliageBrushMaterial.flax
#	Content/Editor/Gizmo/Material.flax
#	Content/Editor/Gizmo/MaterialWire.flax
#	Content/Editor/Gizmo/SelectionOutlineMaterial.flax
#	Content/Editor/Gizmo/VertexColorsPreviewMaterial.flax
#	Content/Editor/Highlight Material.flax
#	Content/Editor/Icons/IconsMaterial.flax
#	Content/Editor/IesProfilePreviewMaterial.flax
#	Content/Editor/Particles/Particle Material Color.flax
#	Content/Editor/Particles/Smoke Material.flax
#	Content/Editor/SpriteMaterial.flax
#	Content/Editor/Terrain/Circle Brush Material.flax
#	Content/Editor/Terrain/Highlight Terrain Material.flax
#	Content/Editor/TexturePreviewMaterial.flax
#	Content/Editor/Wires Debug Material.flax
#	Content/Engine/DefaultDeformableMaterial.flax
#	Content/Engine/DefaultMaterial.flax
#	Content/Engine/DefaultTerrainMaterial.flax
#	Content/Engine/SingleColorMaterial.flax
#	Content/Engine/SkyboxMaterial.flax
#	Source/Engine/Graphics/Materials/MaterialShader.h
2024-04-23 10:30:01 +02:00
Wojtek Figat
b92fbcb3bc Add more const correctness
#2467
2024-04-22 22:53:27 +02:00
Wojtek Figat
32b15f90ab Minor improvements 2024-04-22 18:10:58 +02:00
Wojtek Figat
60e8d73079 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/Renderer/RenderList.cpp
#	Source/Engine/Renderer/RenderList.h
2024-04-17 09:58:59 +02:00
Wojtek Figat
9c2c02c1cf Fix various issues found with thread sanitizer on macOS 2024-04-13 19:20:49 +02:00
Menotdan
e137d31839 Enforce Content:CloneAssetFile() running on the main thread, to avoid a bug that occurs when a particle emitter is created from one of the templates due to the creation coming from the content thread. 2024-04-11 17:37:31 -04:00
Wojtek Figat
d13621e631 Skip CloseFileHandles if file is not in use 2024-03-25 16:50:48 +01:00