summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2021-08-28Merge pull request #49664 from nekomatata/fix-editable-duplicatedMax Hilbrunner
Fix loading packed scene with editable children at runtime
2021-08-27Fix loading packed scene with editable children at runtimePouleyKetchoupp
At runtime, packed scenes with nodes marked as editable instance where saved with node type tags, which prevented the scene to be then loaded as an instance, causing duplicated nodes in the tree. This change ensures nodes marked as editable instances and their owned children are properly set as instances. That doesn't make a difference in the editor, since such nodes where already set as instances based on their instance state, but it helps at runtime where instance states are disabled. Co-authored-by: latorril <latorril@gmail.com>
2021-08-27Require AudioStream::mix to return the number of frames successfully mixedEllen Poe
2021-08-27Merge pull request #51908 from bruvzg/msdf_fonts2K. S. Ernest (iFire) Lee
Make FontData importable resource. Add multi-channel SDF font rendering.
2021-08-27Merge pull request #51896 from nekomatata/restore-ray-shapeCamille Mohr-Daurat
Refactor RayShape and rename to SeparationRayShape
2021-08-27Makes FontData importable resource.bruvzg
Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
2021-08-26Fix misspelled "overriden"Haoyu Qiu
In recent GDVIRTUAL PR and SkeletonModification3DJiggle doc.
2021-08-25Merge pull request #51995 from drcd1/sphere-mesh-normals-fixJFonS
Fixes the normals of SphereMesh when the sphere/hemisphere is oblong
2021-08-25Merge pull request #48374 from Calinou/gradienttexture-add-hdr-propertyHugo Locurcio
Add an `use_hdr` property to GradientTexture to allow storing HDR colors
2021-08-24Merge pull request #52024 from V-Sekai/anim-lengthK. S. Ernest (iFire) Lee
Calculate proper animation length.
2021-08-24Calculate proper animation length.K. S. Ernest (iFire) Lee
2021-08-24Rename RayShape to SeparationRayShapePouleyKetchoupp
Makes it clearer that it's used for special cases when picking a collision shape.
2021-08-24Rename slips_on_slope to slide_on_slopePouleyKetchoupp
Also added some precision to the documentation.
2021-08-24Restore RayShape as a regular shape typePouleyKetchoupp
Partial revert from previously removing ray shapes completely, added back as a shape type but without the specific character controller code.
2021-08-23Restore syntax highlightingkobewi
2021-08-22Merge pull request #51991 from requizm/fix/51990K. S. Ernest (iFire) Lee
Fix 3d animations doesn't play
2021-08-22Fixes the normals of SphereMesh when the sphere/hemisphere is oblongDuarte David
2021-08-22Fix 3d animations doesn't playrequizm
Add comment Fix ff
2021-08-22Merge pull request #50434 from QbieShay/particle-minmaxK. S. Ernest (iFire) Lee
Particle params are expressed as min-max rather than value+range AND separate axes scaling
2021-08-22Merge pull request #51886 from Geometror/fix-layout-editor-file-dialogMichael Alexsander
Fix ItemList layout (+EditorFileDialog)
2021-08-22moved particle parameters to minmax and split scale axisQbieShay
This commit adds quite a chunk of modifications to particles - particle (value + randomness) now use min and max instead - passing a curveXYZtexture is now possible and will scale particles per-axis - CPUParticle3D have an optional parameter to split the scale curve per-axis
2021-08-22Merge pull request #51700 from Geometror/fix-color-pickerK. S. Ernest (iFire) Lee
Reimplement ColorPicker presets
2021-08-22Merge pull request #51945 from yjh0502/fix-bazier-errorK. S. Ernest (iFire) Lee
Curve2D/Curve3D: exact linear interpolation
2021-08-22Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz
* New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-21Curve2D/Curve3D: exact linear interpolationJihyun Yu
While calculating interpolated points, intervals between two baked points has been assummed to be `baked_interval`. The assumption could cause significant error in some extreme cases (for example #7088). To improve accuracy, `baked_dist_cache` is introduced, which stores distance from starting point for each baked points. `interpolate_baked` now returns exact linear-interpolated position along baked points.
2021-08-21Fix ItemList layout (+EditorFileDialog)Hendrik Brucker
2021-08-20Merge pull request #51866 from requizm/fix/49455Hugo Locurcio
Fix `line_separation` working incorrectly in `RichTextLabel`
2021-08-20Fix line_separation constant working incorrectly in RichTextLabelrequizm
2021-08-19Fix capsule height/radius setters with linked propertiesPouleyKetchoupp
Capsule height and radius setters can modify each other, rather than using clamping, to avoid cases where values are not set correctly when loading a scene (depending on the order of properties). Inspector undo/redo: Added the possibility to link properties together in the editor, so they can be undone together, for cases where a property can modify another one. Gizmo undo/redo: Capsule handles pass both radius and height values so they can be undone together.
2021-08-18Adjust the material key bit size for ParticlesMaterialYuri Sizov
2021-08-18Merge pull request #50752 from Phischermen/indeterminate_checkmark_apiRémi Verschelde
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-17Fixed magnet vector not working correctly in SkeletonModification2DFABRIKTwistedTwigleg
2021-08-18Reimplement ColorPicker presetsHendrik Brucker
2021-08-17Merge pull request #51651 from pycbouh/editor-merge-custom-themeRémi Verschelde
Add support for partial custom editor themes
2021-08-16Added icons and API for indeterminate checkmarks for the Tree class.Kevin Fischer
2021-08-16Merge pull request #51368 from ↵Rémi Verschelde
TwistedTwigleg/GSOC_2020_Working_Branch_IK_SQUASHED New and improved IK system for Skeleton3D - Squashed!
2021-08-16Fix incorrect inheritance of `VisualShaderNodeParticleAccelerator`Yuri Roubinsky
2021-08-16Merge pull request #50159 from Calinou/standardmaterial3d-add-shader-commentRémi Verschelde
Add a comment at the top of generated shaders
2021-08-16Merge pull request #51608 from clayjohn/Vulkan-Panorama-sky-hintRémi Verschelde
Use hint_albedo in SkyMaterials
2021-08-16Changes the icon of node arranger in GraphEdit/VisualScript/VisualShaderUmang Kalra
2021-08-16Add a comment at the top of generated shadersHugo Locurcio
This comment is useful to determine the origin of ShaderMaterials converted from built-in material types (such as CanvasItemMaterial or StandardMaterial3D). The Godot version is also included in case the shader needs to be regenerated with a newer engine version.
2021-08-15Added missed limiters for Visual Shader node enumsYuri Roubinsky
2021-08-14New and improved IK system for Skeleton3DTwistedTwigleg
This PR and commit adds a new IK system for 3D with the Skeleton3D node that adds several new IK solvers, as well as additional changes and functionality for making bone manipulation in Godot easier. This work was sponsored by GSoC 2020 and TwistedTwigleg Full list of changes: * Adds a SkeletonModification3D resource * This resource is the base where all IK code is written and executed * Adds a SkeletonModificationStack3D resource * This node oversees the execution of the modifications and acts as a bridge of sorts for the modifications to the Skeleton3D node * Adds SkeletonModification3D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK * Each modification is in it's own file * Several changes to Skeletons, listed below: * Added local_pose_override, which acts just like global_pose_override but keeps bone-child relationships intract * So if you move a bone using local_pose_override, all of the bones that are children will also be moved. This is different than global_pose_override, which only affects the individual bone * Internally bones keep track of their children. This removes the need of a processing list, makes it possible to update just a few select bones at a time, and makes it easier to traverse down the bone chain * Additional functions added for converting from world transform to global poses, global poses to local poses, and all the same changes but backwards (local to global, global to world). This makes it much easier to work with bone transforms without needing to think too much about how to convert them. * New signal added, bone_pose_changed, that can be used to tell if a specific bone changed its transform. Needed for BoneAttachment3D * Added functions for getting the forward position of a bone * BoneAttachment3D node refactored heavily * BoneAttachment3D node is now completely standalone in its functionality. * This makes the code easier and less interconnected, as well as allowing them to function properly without being direct children of Skeleton3D nodes * BoneAttachment3D now can be set either using the index or the bone name. * BoneAttachment3D nodes can now set the bone transform instead of just following it. This is disabled by default for compatibility * BoneAttachment3D now shows a warning when not configured correctly * Added rotate_to_align function in Basis * Added class reference documentation for all changes
2021-08-14Merge pull request #51660 from AnilBK/use-short-functionsRémi Verschelde
Use get_global_* functions instead of using transforms.
2021-08-14Merge pull request #50147 from aaronfranke/disable-node3dRémi Verschelde
Disable Node3D when compiling without 3D and fix disable_3d option
2021-08-14Use get_global_* functions instead of using transforms.Anilforextra
2021-08-14Merge pull request #51636 from Calinou/rename-lineshape2dRémi Verschelde
Rename LineShape2D to WorldMarginShape2D
2021-08-14Rename LineShape2D to WorldMarginShape2DHugo Locurcio
The new name makes it more obvious that it acts as an infinite plane, and is consistent with its 3D counterpart (WorldMarginShape3D).
2021-08-14Add support for partial custom editor themesYuri Sizov
2021-08-13Add an `use_hdr` property to GradientTexture to allow storing HDR colorsHugo Locurcio
This is disabled by default to save some memory and preserve the existing behavior of clamping colors.