Commit graph

11958 commits

Author SHA1 Message Date
tagcup e9896b17a9 Restore the behavior of Spatial rotations recently changed in c1153f5.
That change was borne out of a confusion regarding the meaning of "local" in #14569.

Affine transformations in Spatial simply correspond to affine operations of its Transform. Such operations take place in a coordinate system that is defined by the parent Spatial. When there is no parent, they correspond to operations in the global coordinate system.
This coordinate system, which is relative to the parent, has been referred to as the local coordinate system in the docs so far, but this sloppy language has apparently confused some users, making them think that the local coordinate system refers to the one whose axes are "painted" on the Spatial node itself.

To avoid such conceptual conflations and misunderstandings in the future, the parent-relative local system is now referred to as "parent-local", and the object-relative local system is called "object-local" in the docs.

This commit adds the functionality "requested" in #14569, not by changing how rotate/scale/translate works, but by adding new rotate_object_local, scale_object_local and translate_object_local functions. Also, for completeness, there is now global_scale.

This commit also updates another part of the docs regarding the rotation property of Spatial, which also leads to confusion among some users.
2017-12-27 16:40:49 -05:00
Juan Linietsky c2240a2a71 A promise is a promise, so added ability to load and save shaders as text files, closes #14431 2017-12-26 13:52:09 -03:00
Juan Linietsky edd3bd8cb8 Ability to set flags via code in StreamTexture, as some users find it useful. Fixes #14526. 2017-12-26 12:50:46 -03:00
Juan Linietsky b411029e31
Merge pull request #14796 from AlmightyScientist/issue-14552
Shader Language: Fix Vertex Lighting artifacts.
2017-12-26 12:46:48 -03:00
Juan Linietsky c1153f5041 Change the rotate function of Spatial to be local, makes more sense. Closes #14569 2017-12-26 12:45:56 -03:00
Gilles Roudiere b8c849205c Fix 2D editor checkboxes with a new project 2017-12-26 16:39:58 +01:00
Juan Linietsky 02e883713a
Merge pull request #14977 from volzhs/fix-crash-group
Fix crash & error at saving scene
2017-12-26 11:43:02 -03:00
Juan Linietsky 2b31155baa Fix sidedness check in material. Also remove SIDE built-in. 2017-12-26 11:09:52 -03:00
Juan Linietsky 4a2eef4ad8 Removed the InputEvent ID field, which was unused and can cause bugs. 2017-12-26 09:49:31 -03:00
Andreas Haas 37aab45091
Merge pull request #15040 from Noshyaar/pr2
AnimTreePlayer: fix duplicated properties
2017-12-25 17:47:29 +00:00
George Marques bcf684f9d7
Merge pull request #15042 from Noshyaar/pr3
Add missing parameter names
2017-12-25 12:38:27 -02:00
Poommetee Ketson 6c897707ca Add missing parameter names 2017-12-25 21:19:56 +07:00
Noshyaar 2717b7f038
Merge pull request #15036 from volzhs/popup-menu-size
Fix popup menu size in Inspector dock
2017-12-25 19:53:58 +07:00
Poommetee Ketson f9c2cfbe31 AnimTreePlayer: fix duplicated properties 2017-12-25 19:26:39 +07:00
volzhs cc1d56e3ff Fix popup menu size in Inspector dock 2017-12-25 19:31:53 +09:00
Noshyaar 256a60bc6e
Merge pull request #14826 from carlosfvieira/14371-F_key_Viewport_focus_problem
Fix spatial editor plugin issues on multi viewport view menu shortcuts (only those that are bound to keys)
2017-12-25 08:42:31 +07:00
Noshyaar aecffd71d8
Merge pull request #14847 from YeldhamDev/3d_viewport_save
Fixes for the Spatial Editor's Perspective options and dead code cleaning
2017-12-25 08:40:43 +07:00
Noshyaar deda8974df
Merge pull request #14853 from MattUV/context-menu
Adds an option to move cursor with right click in TextEdit
2017-12-25 08:40:20 +07:00
Noshyaar 5859db00d8
Merge pull request #14846 from carlosfvieira/weird_gizmo_ortho
Fixes gizmo huge scale immediately after change to orthogonal view
2017-12-25 08:39:08 +07:00
Noshyaar 24515266a1
Merge pull request #14875 from YeldhamDev/splitcontainer_cursor
Fixed SplitContainer showing the "resize" cursor when it shouldn't
2017-12-25 08:37:52 +07:00
Noshyaar a483edbddd
Merge pull request #14899 from volzhs/render-quality-option
Respect HDR option
2017-12-25 08:36:46 +07:00
Noshyaar aab4434d76
Merge pull request #14801 from RayKoopa/insert_tree_item
Tree: Insert new item, fix behavior when no parent given
2017-12-25 08:35:31 +07:00
Noshyaar 1348b087e6
Merge pull request #14753 from NathanWarden/mouse_button_fix
Fixed a bug where mouse button focus breaks when using multiple buttons at once.
2017-12-25 08:33:42 +07:00
Noshyaar c9c1bc7a73
Merge pull request #14732 from AndreaCatania/jgizmo
Fixed joint gizmos drawing orientations
2017-12-25 08:32:55 +07:00
Noshyaar b6c798a062
Merge pull request #14827 from RayKoopa/editor_patchwork
Some Editor UI patchwork
2017-12-25 08:28:53 +07:00
Noshyaar 3f193af893
Merge pull request #14808 from YeldhamDev/script_editor_fixes
Some fixes for the Script Editor and dead code cleaning.
2017-12-25 08:27:38 +07:00
Noshyaar d141cfb740
Merge pull request #14819 from homer666/master
[DOCS] PhysicsDirectSpaceState

[ci skip]
2017-12-25 08:25:28 +07:00
Noshyaar 3e4836567b
Merge pull request #14908 from YeldhamDev/dialog_changes
Fixes and modifications for some dialogs
2017-12-25 08:23:06 +07:00
Noshyaar b3fb982d6b
Merge pull request #15011 from djrm/pr_visual_improvements
Added default close and title color to editor themed graph nodes
2017-12-25 08:19:34 +07:00
Chris Bradfield 9b46218a16
Merge pull request #15016 from cbscribe/t2d_fix
[DOCS] minor corrections to Transform2D
2017-12-24 15:12:05 -08:00
Chris Bradfield 00c2005307 [DOCS] minor corrections to Transform2D 2017-12-24 13:12:07 -08:00
Daniel J. Ramirez e7b24c648c Added default close and title color to editor themed graph nodes 2017-12-24 13:08:53 -06:00
volzhs ff68b80df7 Fix error if scene has Camera at saving scene 2017-12-25 02:43:37 +09:00
Ignacio Etcheverry 8b0ad17b76
Merge pull request #14997 from neikeq/issue-14988
Marshal NULL MonoString* as empty Godot string
2017-12-24 17:50:28 +01:00
volzhs d6a88cdc41 Fix crash from move_child at saving scene 2017-12-25 01:31:13 +09:00
Juan Linietsky e1da261844 Restored opus build since WebM needs it, but disabled it from code. 2017-12-24 09:37:51 -03:00
Juan Linietsky 021f3c924b -Removed OpenMP support, replaced by a custom class.
-Disabled Opus, implementation is wrong.
2017-12-24 09:32:12 -03:00
Noshyaar 83182ea4a1
Merge pull request #14982 from GodotExplorer/more-translate-text
Add more translatable text for editor plugins.
2017-12-24 18:28:46 +07:00
Andreas Haas c899583ac1
Merge pull request #14993 from AlmightyScientist/issue-14336
X11: Fixes maximized splash-boot screen bug.
2017-12-24 09:40:22 +00:00
Ignacio Etcheverry 6e3d4ee9a6 Marshal NULL MonoString* as empty Godot string 2017-12-24 03:32:40 +01:00
Enzo Nocera 6f3486c486 x11: Fix maximized splash-boot screen bug.
Fixes #14336
2017-12-24 01:16:17 +01:00
Juan Linietsky 9969c5c6a1
Merge pull request #14978 from AndreaCatania/intshap
Fixed dispatch callback
2017-12-23 11:55:15 -03:00
geequlim 52ad2e5418 Add more translatable text for editor plugins. 2017-12-23 22:40:15 +08:00
AndreaCatania eb32c4b5d2 Fixed joint gizmos orientations 2017-12-23 15:19:03 +01:00
AndreaCatania 0f5c87bfa4 Fixed dispatch callback 2017-12-23 12:36:51 +01:00
Gilles Roudiere 59ec417e4a
Merge pull request #14919 from groud/fix_grow_margin
Fixes Rect2 grow_margin not working at all
2017-12-23 20:08:45 +09:00
Rémi Verschelde 5463b5e348
Merge pull request #14965 from AndreaCatania/intshap
Fixed bullet intersect_shape crash, Fixed bullet sleeping
2017-12-23 11:18:30 +01:00
Rémi Verschelde 83f0b558a6
Merge pull request #14969 from Noshyaar/pr
ProjectManager: enhance dialog ok button text
2017-12-23 11:17:00 +01:00
AndreaCatania aea1b2e6c3 Fixed rigidbody sleping, Fixes #13952 2017-12-23 05:13:39 +01:00
Noshyaar 6eb030e24c
IssueTemplate: remove \n at checkbox line 2017-12-23 09:18:13 +07:00