Rémi Verschelde
f577efd47e
Merge pull request #11424 from groud/control_node_presets
...
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Poommetee Ketson
dcc759fbbc
2DEditor: fix duplicated 'id_pressed' connection
2017-09-25 23:15:54 +07:00
Gilles Roudiere
05bb8e0c10
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22 11:39:44 +02:00
Rémi Verschelde
779426d2df
Merge pull request #11477 from djrm/pr_visuals
...
Improved a lot of icons, and some style fixes
2017-09-22 09:28:10 +02:00
Gilles Roudiere
56a80625e5
Fixes the rulers text drawn outside the viewport_base
2017-09-22 09:18:04 +02:00
Daniel J. Ramirez
29d3ecf29a
Improved a lot of icons, and some style fixes
2017-09-21 15:55:07 -05:00
Gilles Roudiere
e2145bc960
Fix godot spraying errors about a null check
2017-09-21 21:59:38 +02:00
Rémi Verschelde
82f13288dd
Merge pull request #11453 from djrm/pr_visuals
...
Visual tweaks.
2017-09-21 10:51:06 +02:00
Daniel J. Ramirez
00755ff2c0
Visual tweaks.
...
Updated icons
Updated some color
2017-09-20 19:29:52 -05:00
Marcelo Fernandez
1a8b324545
Add missing NULL checks on CanvasItemEditor
2017-09-20 16:28:16 -03:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Rémi Verschelde
01e4d2672c
Merge pull request #11327 from SaracenOne/drag_meshes
...
Drag and drop for meshes directly.
2017-09-19 23:38:10 +02:00
SaracenOne
a3b3886029
Drag and drop for meshes directly and fix drop restriction for non-Texture objects in canvas editor.
2017-09-18 22:50:05 +01:00
Gilles Roudiere
b5f29fe073
Add some options and reorganize the 2D editor menus. Makes available forced snapping.
2017-09-18 23:20:18 +02:00
Gilles Roudiere
ee61d5d04b
Implement smart snapping. Fixes a bug with anchors single-axis move (when they were rotated).
2017-09-17 23:22:13 +02:00
Gilles Roudiere
a6f577a9f2
Avoid grid step to go below zero
2017-09-17 23:19:05 +02:00
Gilles Roudiere
7c24a26bc2
Use shift to move anchors on a single axis
2017-09-17 23:19:05 +02:00
Gilles Roudiere
bf6d7add01
Implement shortcuts to multiply/divide the grid step
2017-09-17 23:19:05 +02:00
Gilles Roudiere
fc52a74ffc
Fusion the lock/unlock and the group/ungroup buttons
2017-09-17 23:19:05 +02:00
Gilles Roudiere
975f7eeec3
Adds keyboards shortcuts
2017-09-17 23:19:05 +02:00
Gilles Roudiere
335688ce78
Implements rulers
2017-09-17 23:19:05 +02:00
Gilles Roudiere
72e0a68a81
Fixes axis badly displayed with high zooming values
2017-09-17 23:04:30 +02:00
Gilles Roudiere
71b45614fd
Split some functions to make the code more readable (maybe at the price of a neglibile performance loss)
2017-09-17 23:04:30 +02:00
Gilles Roudiere
f48b76fd8d
Make the shortcuts for setting the pivot editable
2017-09-17 23:04:30 +02:00
Gilles Roudiere
69091d4035
Display draggable anchors only if the parent is not a container
2017-09-17 23:04:30 +02:00
Gilles Roudiere
100c788884
Display width and height when dragging a node side
2017-09-17 23:04:30 +02:00
Gilles Roudiere
ad1028471c
Draw a ghost rect when dragging nodes if it's rotated/scaled
2017-09-17 23:04:30 +02:00
Gilles Roudiere
dbc4dbdec1
Displays margins values when moving the node
2017-09-17 23:04:30 +02:00
poke1024
d9b68c5f5d
adds display of old bounding box as suggested by Zephilinox in issue #10936
2017-09-14 17:46:24 +02:00
poke1024
9ba92f5baa
sprite selection rectangle updates again (fixes issue 10936)
...
sprite selection rectangle was not updating in real time when dragging or rotating sprites; undoing translation/rotation changes did not update sprite rectangles either.
2017-09-14 07:12:50 +02:00
Rémi Verschelde
cf941fdc35
Merge pull request #11026 from hpvb/fix-assign-in-if
...
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Hein-Pieter van Braam
8230bf0a2f
Remove assignment and declarations in if statements
...
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam
67a706fc1b
Fix various assorted warnings
...
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Juan Linietsky
1eeda0f32f
Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true.
2017-09-07 11:22:07 -03:00
Rémi Verschelde
7f262e484a
Merge pull request #10907 from SaracenOne/spatial_edit_drag
...
Added support for drag and drop in spatial editor.
2017-09-04 23:05:31 +02:00
Poommetee Ketson
fd68c3b68f
2DEditor: enhance viewport cursor shape
2017-09-04 11:36:12 +07:00
SaracenOne
d3cb8d12ff
Added support for drag and drop in spatial editor.
2017-09-03 05:00:23 +01:00
Hein-Pieter van Braam
9c63ab99f0
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Hein-Pieter van Braam
f9467ec1ea
Fix signed and unsigned comparisons
...
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01 08:13:12 +02:00
toger5
7793bfc544
added icon updating to most ui elements
2017-08-30 21:47:09 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Rémi Verschelde
612099e377
Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
...
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
Rémi Verschelde
5976e8d7de
Merge pull request #10625 from Rubonnek/fixed-leaks
...
Fixed several memory leaks
2017-08-27 02:10:32 +02:00
Wilson E. Alvarez
7a07895920
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Wilson E. Alvarez
1577f41653
Fixed several memory leaks
2017-08-25 08:47:05 -04:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Rémi Verschelde
5485233549
Merge pull request #10300 from H4kor/anchor
...
Show Anchor even when Control-Node is hidden
2017-08-16 17:34:33 +02:00