Commit Graph

105 Commits

Author SHA1 Message Date
Rémi Verschelde 9258d7b5d0 Fix warnings about uninitialized vars [-Wsometimes-uninitialized]
Fixes the following Clang 7 warnings:
```
drivers/gles3/rasterizer_scene_gles3.cpp:1260:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1280:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1281:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1282:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1286:5: warning: variable 'target' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
editor/editor_properties_array_dict.cpp:982:15: warning: variable 'change_index' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
editor/editor_properties.cpp:2655:6: warning: variable 'lt' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
editor/settings_config_dialog.cpp:367:11: warning: variable 'current_search_box' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
```
2018-10-01 17:33:08 +02:00
Rémi Verschelde c459fad43c
Merge pull request #22536 from DualMatrix/no_advance
Fixed animation_player not advancing to the next frame when inserting a value.
2018-09-30 22:16:26 +02:00
DualMatrix 9aa83a77ab Fixed editor inspector ranges capping values at 65535.
Fixed editor inspector ranges capping values at 65535.
2018-09-29 17:05:31 +02:00
DualMatrix 5f2f108908 Fixed animation_player not advancing to the next frame when inserting a value.
Fixed animation_player not advancing to the next frame when inserting a value.
2018-09-29 16:44:20 +02:00
Rémi Verschelde d55491a7b8
Merge pull request #22407 from DualMatrix/step_int
Added step support when exporting integers.
2018-09-28 10:39:50 +02:00
Rémi Verschelde ea63c9a870 Inspector: Enable wrap for multiline text widget
Fixes #22458.
2018-09-27 09:09:47 +02:00
DualMatrix 0e37829031 Added step support when exporting integers.
Added step support when exporting integers.

This wasn't possible before and was kinda unclear see #21441
2018-09-24 18:26:39 +02:00
Michael Alexsander Silva Dias b8f946f118 Make Rect2 EditorProperty obey the horizontal setting 2018-09-23 16:00:48 -03:00
willnationsdev 5436abefe4 Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
luz.paz 08bde5b2de Misc. typos
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12 21:39:17 -04:00
volzhs 192beed068 Make better look for bitmask 2018-09-05 10:49:48 +09:00
Juan Linietsky 0d0cf2e948 Change how path properties are presented, so they can be edited. Fixes #20709 2018-08-23 11:45:54 -03:00
Rémi Verschelde 661c9ece7c Add PROPERTY_HINT_PLACEHOLDER_TEXT for String properties
Use it to provide a better example for application identifiers
on Android, iOS and macOS, where users thought they *had* to use
this as a magic token.
2018-08-20 13:48:05 +02:00
Rémi Verschelde 8bc9986db4
Merge pull request #21155 from ordigdug/fix-colorpicker-popup
Fixes colorpicker popup immeditately closing when interacting with co…
2018-08-18 22:48:29 +02:00
DualMatrix 8ad251b331 Fixed text entry is going in reverse
Fixed text entry is going in reverse, this undoes what seems to be a mistake in #20400 and fixes #21061
2018-08-18 20:23:54 +02:00
ordigdug 17b439844d Fixes colorpicker popup immeditately closing when interacting with colorpicker property in a subinspector. Fixes #19559 2018-08-18 11:47:14 -04:00
Rémi Verschelde ba47f15b78 Fix crash assigning script to a Resource
We were dereferencing the wrong identifier, which could be NULL.
Fixes #19289, supersedes and closes #20985.
2018-08-16 15:40:06 +02:00
Juan Linietsky c72cab1293
Revert "Open visual editor when "open editor" button in the inspector is pressed" 2018-08-14 15:35:21 -03:00
Rémi Verschelde bbdb6cf16e
Merge pull request #20400 from OliPerraul/oliperraul/20332/fix_defects_with_editor_export_dict
Fixed a number of issues related to the Dictionary export property for the editor
2018-08-14 16:15:43 +02:00
Juan Linietsky 254eb46de3 Several improvements to inspector.
-Added optional horizontal/vertical modes for vector editing (default false for vec2, true for vec3)
-Some clean ups with fonts and styles
2018-08-07 12:22:46 -03:00
Hein-Pieter van Braam 5c88bc66e3 Undo an accidental revert.
Sorry for the history pollution. I was testing something on this branch
and forgot to reset befor pushing the security update.

This reverts commit 2ef66def46.
2018-07-29 04:14:57 +02:00
Hein-Pieter van Braam 2ef66def46 Revert "Open visual editor when "open editor" button in the inspector is pressed."
This reverts commit 0ae400f523.
2018-07-28 21:16:20 +02:00
oliperraul dc2df7a146 Fixed a number of issues related to the Dictionary export property for the editor
* Fixed a problem when buttons were deleted on the same frame they were pressed (inside update_property)
* Prevent usage of nul key for a dictionary.
* Provide symetry in the interface for both the array property and dictionary property by first clicking on the field to instantiating the dictionary.
	Array (Nil), Array (size 0), Array (size 1)
	Dictionary (Nil), Array (size 0), Array (size 1)
* Allow to press enter to confirm a string in line edi.
2018-07-28 14:17:56 -04:00
Rémi Verschelde 578c8fc1e5 Fix layer 2-line tooltips used as name in inspector
Fixes #20288.
2018-07-28 10:27:19 +02:00
Tiger Caldwell 5421e46a43 Fixed Issue #20399 2018-07-25 18:50:12 -04:00
K. S. Ernest (iFire) Lee 23744d8064 Add editor property type so that inspector can search for objects. This is a regression. 2018-07-25 12:54:35 -07:00
Rémi Verschelde 76bfe14e00
Merge pull request #20117 from ordigdug/inspector-fix-inconsistencies-with-exported-enums
Fix -new inspector- Inconsistencies with exported enums - Fixes remai…
2018-07-19 18:18:20 +02:00
Juan Linietsky 911febb41f Improvements to vector fields, show axis in color with a background 2018-07-18 22:27:39 -03:00
ordigdug afb4dfab22 Fix -new inspector- Inconsistencies with exported enums - Fixes remaining issues in #19534 2018-07-18 20:01:03 -04:00
Juan Linietsky 43dc050947 Several improvements to editor inspector usability and style 2018-07-18 19:37:41 -03:00
Rémi Verschelde 71b18acb05
Merge pull request #20220 from volzhs/texture-size
Fix preview texture size on Inspector
2018-07-17 18:04:19 +02:00
volzhs d551f81874 Fix preview texture size on Inspector 2018-07-17 23:08:47 +09:00
Rémi Verschelde 634ce7917e Inspector: Add bit/value info to layer tooltip
Fixes #20213.
2018-07-17 14:33:22 +02:00
Thomas Herzog 103524e6b7
Merge pull request #20112 from nunodonato/openvisualeditorbutton
Open visual editor when "open editor" button in the inspector is pressed
2018-07-16 15:42:57 +02:00
Juan Linietsky f6ce73f724 Visual Shaders are back. 2018-07-14 18:16:18 -03:00
Nuno Donato 0ae400f523 Open visual editor when "open editor" button in the inspector is pressed.
Fixes #20111
2018-07-12 12:41:22 +01:00
Max Hilbrunner 073e77454d
Merge pull request #19713 from volzhs/fix-crash-nodepath-animation-edit
Fix crash when assigning a node on editing animation key
2018-07-05 04:20:40 +02:00
Max Hilbrunner 43748f67be
Merge pull request #19351 from guilhermefelipecgs/fix_reversed_text
Fixes to the new inspector
2018-07-05 03:50:31 +02:00
Guilherme Felipe 709948aa5a Fixes to the new inspector
- Fix inspector dock not updating tree for main resource;
- Fixes the inspector input text reverted during typing;
- Add method bind for "refresh" used by MultiNodeEdit;
2018-07-04 20:08:45 -03:00
Max Hilbrunner beefe98974
Merge pull request #19635 from bojidar-bg/19158-exported-array-new-inspector
Add proper type information to array property
2018-07-03 15:47:02 +02:00
Juan Linietsky eeab3502d5 Changes to how node paths are selected from property, allowing setting a hint. 2018-06-27 20:50:25 -03:00
volzhs b4f60ae3ac Fix crash when assigning a node on editing animation key 2018-06-22 14:48:49 +09:00
Juan Linietsky 0a1c1c660f -Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
2018-06-18 22:12:08 -03:00
Bojidar Marinov 8ecef3496c
Add proper type information to array property
Part of #19158
2018-06-18 22:24:31 +03:00
Guilherme Felipe 262c78ed97 Fix Rect2 properties typo 2018-06-04 19:16:17 -03:00
Rémi Verschelde 5ac70d96d0
Merge pull request #19115 from firefly2442/cppcheck-defensive
cppcheck - defensive programming on i index check order
2018-05-25 11:57:28 +02:00
volzhs 70e04ae26f Use relative node path when assigning a node on inspector 2018-05-23 23:43:47 +09:00
firefly2442 b22c1dd0f7 cppcheck - defensive programming on i index check order 2018-05-23 00:15:35 -06:00
Juan Linietsky 9b567cc549 Dictionary editing support in inspector 2018-05-19 17:57:44 -03:00
Juan Linietsky eded061668 Dictionary editing does the comeback to the inspector, fixes #19046 2018-05-19 16:10:19 -03:00
Juan Linietsky c5182a580a Working Drag & Drop again in inspector 2018-05-17 19:41:49 -03:00
Juan Linietsky 4b5227ff77 -Ability to open resources in the same window
-Plenty of fixes and improvements to new inspector
-Fixes that were needed to make inspector work better
2018-05-17 18:03:05 -03:00
Guilherme Felipe 35024d4e7b Add missing copyright headers 2018-05-16 14:50:44 -03:00
Juan Linietsky dfd1331690 Allow editing of some unbound properties when hinted (or no range hinted) 2018-05-16 09:13:41 -03:00
Juan Linietsky 005b69cf6e -New inspector.
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)

-
2018-05-15 17:14:31 -03:00