Commit Graph

984 Commits

Author SHA1 Message Date
Josh Grams ee59b2053f AnimationTreePlayer: fix discrete value tracks.
Discrete value tracks don't update every frame (only when a new key is
reached).  So we can't use the actual property value as an accumulator:
it will end up being zero most of the time.
2016-04-12 11:54:17 -04:00
Rémi Verschelde 08aaff21f3 Merge pull request #4286 from JoshuaGrams/atp-resources
AnimationTreePlayer: allow animating resource properties.
2016-04-12 13:18:47 +02:00
Rémi Verschelde e07266f6c1 Merge pull request #4273 from bojidar-bg/add-layers-and-masks-to-3d
Port collision and layer masks to 3D
2016-04-12 13:17:26 +02:00
Rémi Verschelde 29ed58eab6 Merge pull request #4284 from JoshuaGrams/atp-process-mode
AnimationTreePlayer: constructor now sets processing mode.
2016-04-12 08:56:48 +02:00
Josh Grams aabb0d9cbc AnimationTreePlayer: allow animating resource properties.
e.g. Particles2D config and param values.
2016-04-11 20:10:35 -04:00
Josh Grams ed497cb153 AnimationTreePlayer: constructor now sets processing mode. 2016-04-11 11:54:32 -04:00
Rémi Verschelde 7d1b4567b0 Merge pull request #4155 from JoshuaGrams/anim_tree_switched
AnimationTreePlayer: Various processing improvements
2016-04-11 13:02:21 +02:00
Bojidar Marinov f7c3d6329c Port collision and layer masks to 3D, fixes #1759
Raycasts now have type_mask and layer_mask. Areas - collision_mask and layer_mask. PhysicsBodies needed only collision_mask.
2016-04-09 22:11:12 +03:00
Paulb23 8c328474f2 Setting to change line number color 2016-04-08 20:11:16 +01:00
Rémi Verschelde b9ac3df29b Merge pull request #4259 from neikeq/pr-issue-4224
Fix RayCast not updating when debugging collissions
2016-04-07 14:13:48 +02:00
Rémi Verschelde 33d63f42f5 Merge pull request #4257 from sanikoyes/Pr-gui-fix-warn
Fix warn print when hide an control does not inside_tree
2016-04-07 14:10:50 +02:00
Rémi Verschelde e7b6994e24 Merge pull request #4256 from sanikoyes/Pr-fix-tween-crash
Fix crash when tween control object previous freed
2016-04-07 14:10:38 +02:00
Ignacio Etcheverry 6cf3bdcf76 Fix RayCast not updating when debugging collissions 2016-04-07 13:30:40 +02:00
Rémi Verschelde 7820e590ea Doc: fix type of stream object 2016-04-07 11:45:39 +02:00
sanikoyes 5ec7d3f264 Fix warn print when hide an control does not inside_tree 2016-04-07 15:46:38 +08:00
sanikoyes da28a2f062 Fix crash when tween control object previous freed 2016-04-07 15:45:16 +08:00
Josh Grams 4f6b2152e2 AnimationTreePlayer (transition_node_set_current): fix by removing copy-paste duplication. 2016-04-06 15:09:00 -04:00
Josh Grams 1b95dca6bd AnimationTreePlayer (set_active, reset, constructor): seek all animations to start. 2016-04-06 15:07:58 -04:00
Josh Grams 5d6b58fea6 AnimationTreePlayer (_process_node): more robust oneshot termination condition. 2016-04-06 15:06:42 -04:00
Rémi Verschelde 3e3f16fefc Merge pull request #4251 from Paulb23/block_indent_issue_3803
Fixed block indent inconsistency, issue #3803
2016-04-06 19:39:07 +02:00
Paulb23 93700676b5 Fixed block indent inconsistency, fixes issue 3803 2016-04-06 17:46:10 +01:00
Rémi Verschelde d5191a610b Merge pull request #4248 from bojidar-bg/fix-launchmedia-for-bones
Fix Ctrl+LaunchMedia showing up as a shortcut for "Make Bones"
2016-04-06 18:43:15 +02:00
Rémi Verschelde 44446cf58b Merge pull request #4238 from Paulb23/caret_color
Ability to change the caret color
2016-04-06 18:42:32 +02:00
Rémi Verschelde d6871ee847 Merge pull request #4234 from Paulb23/member_variable_syntax_highlighting
Member variable syntax highlighting
2016-04-06 18:42:13 +02:00
Bojidar Marinov 6dcd1354c2 Add a `sleeping_state_changed` signal to RigidBody and RigidBody2D classes
Closes #3911
2016-04-06 17:14:38 +03:00
Bojidar Marinov b7d79c93f4 Fix PopupMenu and MenuButton not activating items with shortcut inside submenus 2016-04-06 15:42:50 +03:00
Paul Batty 646e089782 Fixed text edit undo and redo operation interaction 2016-04-06 08:36:29 +02:00
Paulb23 c7519f091d Ability to change the caret color 2016-04-05 17:06:56 +01:00
Paulb23 fc9f9adcb2 Member variable syntax highlighting 2016-04-05 15:50:54 +01:00
Paulb23 971c3be52d Fixed 'complex' typo in method name 2016-04-05 14:30:00 +01:00
Paulb23 15f43149e1 Fixed undoing twice when removing selection 2016-04-05 13:52:18 +01:00
Rémi Verschelde 72825ecdca Merge pull request #4191 from leezh/progressbar_minsize
Progress bar minsize now checks percent_visible
2016-04-04 07:31:03 +02:00
Paulb23 a984adb5a6 Fixed insert mode interaction with auto complete 2016-04-03 15:21:16 +01:00
Paulb23 fe779d4386 Fixed insert mode removing first unselected character 2016-04-03 14:54:54 +01:00
Paul Batty 50aa78210c Function syntax highlighting 2016-04-02 21:46:42 +02:00
Rémi Verschelde 48f057ea81 Merge pull request #4193 from Paulb23/text_edit_insert_mode
Added insert mode to text editor
2016-04-02 20:25:24 +02:00
Paulb23 2b57cb94da Added insert mode to text editor 2016-04-01 13:48:38 +01:00
Hearto Lazor 995890d5b2 Now the timer could be paused
pause with: set_active(true/false)
is paused with: is_active()
2016-03-31 18:23:16 -03:00
Josh Grams 0a9c8a9f36 AnimationTreePlayer (_process_node:TIMESEEK): allow auto-advance with 0 xfade. 2016-03-31 12:12:05 -04:00
Josh Grams 7fe28d4168 AnimationTreePlayer (_process_node:TIMESEEK): give p_seek precedence over tsn->seek_pos. 2016-03-31 10:06:38 -04:00
Zher Huei Lee 0bba09c4cb Progress bar minsize now checks percent_visible
Allows for really thin progress bars such as for pixel-art styles.
2016-03-31 12:58:07 +01:00
Josh Grams 8920ab0fbf * AnimationTreePlayer (_process_node): remove `switched` argument.
The _process_node function (which recurses through the blend tree
generating blend values and the active animation list) had an argument
named `switched` which would loop an animation back to the beginning if
it had reached the end (regardless of whether or not it was supposed to
be a looping animation).

This argument was only used in four places: two of them were overridden
by a seek-to-zero, and I believe the other two are bugs.

In OneShot, it was used to reset the oneshot animation to the beginning
when fired. But this would fail if the oneshot node was fired before it
had completed its previous run. While this *could* be a valid way for
oneshot to work (firing does nothing if it's already running), the code
currently resets the fade-in, so I believe that it is intended to reset.
I replaced this usage with seek-to-0.

In Transition, it was used on the previous (fading out) animation when
seeking the Transition node, which I believe is incorrect: why would you
want to loop a non-looping animation instead of simply fading out from
the end? Also it will never happen unless you seek the Transition node
twice during one cross-fade.

The other two uses are in Transition and _process_animation, where it is
used along with a seek-to-zero which overrides it.
2016-03-27 07:19:05 -04:00
Paulb23 cd07badee3 Fixed numbers not highlighting after space 2016-03-26 22:03:27 +00:00
Rémi Verschelde 15d1fca061 Merge pull request #4102 from SaracenOne/dynamic_margin_properties
Dynamic property list for control margins
2016-03-23 09:36:18 +01:00
Rémi Verschelde e8ee4f7973 Merge pull request #4115 from Paulb23/number_syntax_highlighting
Syntax highlighting for numbers
2016-03-22 07:34:08 +01:00
sanikoyes 0c6f089ce4 Fix GDScript crash when call show/hide in func _exit_tree 2016-03-22 12:46:33 +08:00
Paulb23 c844c2d604 Syntax highlighting for numbers 2016-03-21 15:45:38 +00:00
Saracen d8392dd117 Dynamic property list for control margins allowing floating point properties to be used with ratio anchors. 2016-03-20 05:59:18 +00:00
Rémi Verschelde b8daa7e6e6 Merge pull request #4095 from neikeq/pr-bind-add_spacer
BoxContainer: Bind method add_spacer(bool)
2016-03-19 13:55:04 +01:00
Rémi Verschelde bf13f29b15 Merge pull request #4094 from neikeq/pr-fix-4062
TextEdit: Fix Shift+Delete shortcut not calling cut()
2016-03-19 13:54:02 +01:00
Ignacio Etcheverry 0571f961a8 BoxContainer: Bind method add_spacer(bool) 2016-03-19 13:37:07 +01:00
Ignacio Etcheverry abb720438f TextEdit: Fix Shift+Delete shortcut not calling cut() 2016-03-19 13:22:44 +01:00
Bojidar Marinov 2a581835ca Fix issues with tilemap covering child nodes and old quadrants
Closes #4070
2016-03-18 18:57:26 +02:00
Saracen 44fe74bfc3 Fix cursor getting locked on tree control if tree is cleared while modifying numerical element. 2016-03-17 23:10:09 +00:00
Paulb23 9c0e1524e5 Fixed highlighting when word occurs as substring first 2016-03-17 20:35:04 +00:00
Paulb23 4cc3fbeaff Fixed highliting with shift and mouse 2016-03-17 19:37:19 +00:00
Paulb23 b0488cacf2 Highlight all occurrences of selected word 2016-03-16 21:20:42 +00:00
Ignacio Etcheverry fac027cb14 LineEdit/TextEdit: Add Shift+Delete shortcut for cut 2016-03-15 13:03:38 +01:00
Ignacio Etcheverry 4dfd0c1863 TextEdit: Fix inconsistent copy, cut and paste behaviour 2016-03-15 13:02:38 +01:00
Rémi Verschelde aec4f57f95 Merge pull request #3528 from SaracenOne/baked_light_realtime_colourize
Ability to colourize baked lighting in real time.
2016-03-15 10:22:09 +01:00
Rémi Verschelde c1a1adae28 Merge pull request #4051 from AlexHolly/fileeditor-open-any
(editor)filedialog open file and dir MODE_OPEN_ANY
2016-03-15 08:45:01 +01:00
Rémi Verschelde 86c6a4a8f6 Merge pull request #4056 from TheHX/issue-1423
Automatically create input node when creating a ShaderGraph
2016-03-14 20:08:44 +01:00
Franklin Sobrinho 5ee67ba498 Automatically create input node when creating a ShaderGraph 2016-03-14 15:24:12 -03:00
Rémi Verschelde c30bebd1d3 Merge pull request #4017 from Paulb23/set_tab_size
Added configurable tab size in the text editor.
2016-03-14 17:12:15 +01:00
Paulb23 9234bd3ff9 Added configuable tab size 2016-03-14 15:13:45 +00:00
Alexander Holland 751c1deef1 (editor)filedialog mode open any 2016-03-14 16:03:18 +01:00
Rémi Verschelde 8b9596b7bf Merge pull request #4035 from TheHX/item-list
Add icon region support for ItemList
2016-03-13 23:52:27 +01:00
Saracen b2e471fd7c Undo and redo commands on text editor now affect internal version which fixes inconsistent file saving validation. 2016-03-13 20:08:12 +00:00
Franklin Sobrinho 1f07fe5502 Add icon region support for ItemList 2016-03-13 12:51:19 -03:00
Juan Linietsky 8b1dcbfe4d -Made editor support SSL certs by default (embedded them)
-Made asset sharing support https
-Many fixes to HTTPRequest
-Added an asset installer dialog
-Visual cleanups to asset sharing tab
-Fixed some issues in ScrollContainer, hope it does not break things
-Asset sharing tab is not visible (hidden on purpose) for now.
2016-03-12 10:46:38 -03:00
Rémi Verschelde 6e86a05350 Merge pull request #4012 from sanikoyes/Pr-linke-fail-disable-3d
Fix link error when disable_3d=yes
2016-03-11 07:11:23 +01:00
sanikoyes a638af886e Fix link error when disable_3d=yes 2016-03-11 10:01:56 +08:00
Bojidar Marinov bac875be66 Fix a crash when running a game with Controls with a tools build
Regression from #3997

TOOLS_ENABLED is defined, even when running from editor, but EDITOR_DEF SEGFAULTs
2016-03-10 21:01:49 +02:00
Rémi Verschelde aaad24e6fb Merge pull request #3865 from Marqin/coverity
[Coverity] fixed 11 of 537 potential bugs found by Coverity
2016-03-10 16:15:49 +01:00
Rémi Verschelde 6ef3c3b645 Merge pull request #3980 from JoshuaGrams/timescale-remainder
TimeScale node: scale return value (time remaining).
2016-03-09 20:17:13 +01:00
Bojidar Marinov 0e8a8d2cb1 Add option to keep margins when changing anchors, closes #3979
Amend: Fixed an issue for non-tool builds
Amend2: Same, just fixed doing nothing at some times
2016-03-09 21:14:17 +02:00
Josh Grams 65b7791263 TimeScale node: return +inf remaining for 0 scale. 2016-03-09 06:57:28 -05:00
Hubert Jarosz 7b07bcaf44
fix six possible "divide by zero" 2016-03-09 00:18:23 +01:00
Hubert Jarosz bf7f9244a9 fix two reading uninitialized pointers
fixed in:
tools/editor/project_settings.cpp
scene/gui/graph_edit.cpp
2016-03-09 00:16:56 +01:00
Hubert Jarosz 4a4f247914
remove trailing whitespace 2016-03-09 00:00:52 +01:00
Rémi Verschelde 1dad6eca81 Merge pull request #3991 from JoshuaGrams/issue-3711
Issue 3711
2016-03-08 23:54:46 +01:00
Josh Grams 2fa200ff53 AnimationTreePlayer: distinguish value tracks.
If the node had a 3D Transform, the transform would always get written,
even if the tracks on that node were supposed to be value tracks.
2016-03-08 17:23:32 -05:00
Juan Linietsky 9157a13aef Merge pull request #3969 from Paulb23/scroll_past_end_of_file
Enabled scrolling past end of file in text editor.
2016-03-08 15:34:21 -03:00
Saracen 7fecebd8a8 Added extra controls to GeometryInstances to control how they should cast shadows: double-sided and shadows only.
Conflicts:
	servers/visual/visual_server_raster.h
2016-03-07 23:14:14 +00:00
Josh Grams 2e1b1234a3 TimeScale node: scale return value (time remaining). 2016-03-07 17:21:07 -05:00
Rémi Verschelde 20308c0475 Merge pull request #3919 from chuckeles/open-lines-below-above
Open line below and above
2016-03-07 20:33:05 +01:00
Paulb23 f19eea2f2d Enabled scrolling past end of file 2016-03-07 02:32:51 +00:00
Franklin Sobrinho 1d188c1c7b Fix Sprite doesn't updating region_rect value in certain conditions 2016-03-05 12:30:09 -03:00
Martin Chuckeles bd7f2590f1 Add special new line opening 2016-03-04 20:10:31 +01:00
Juan Linietsky 5a9b18b665 -Work on addon editor plugin (disabled by default)
-New HTTPRequest node, to make HTTP requests simpler.
2016-03-04 11:10:48 -03:00
Martin Chuckeles 47206b409d Add editor settings for call hint placement
Added settings: text_editor/put_callhint_tooltip_below_current_line
and text_editor/callhint_tooltip_offset
2016-03-04 12:10:15 +01:00
Martin Chuckeles 26cc14e839 Hide hint if completion is active 2016-03-03 20:31:25 +01:00
Martin Chuckeles 03025f60b6 Move the call hint under the current line 2016-03-03 20:26:50 +01:00
Rémi Verschelde 46bfcd3507 Merge pull request #3858 from JoshuaGrams/blend3
AnimationTreePlayer (Blend3): process all inputs.
2016-03-01 14:02:11 +01:00
Josh Grams 391ce81c5e AnimationTreePlayer: blend value tracks (closes #2299)
Variant:
- zero() sets a Variant to the appropriate type of zero value
- blend() blends part of one Variant on top of another.
2016-03-01 07:37:36 -05:00
Josh Grams b79351aa45 AnimationTreePlayer (Blend3): process all inputs.
Always call _process_node on all three inputs so that looped animations
don't get out of sync.
2016-02-28 06:55:53 -05:00
Juan Linietsky 08e0e64a19 fix transform localization event in mouse motion 2016-02-27 09:47:39 -03:00
eska 104e008b56 Fix missing dependency resolver in Windows 2016-02-21 22:51:19 +01:00
Juan Linietsky b91b89cf60 Add support for placeholders in tscn, which was missing. Closes #3652 2016-02-21 11:18:31 -03:00
Juan Linietsky c04a9ff751 -Fixed bug with event player crashing, closes #3687 2016-02-20 21:00:08 -03:00