Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
c4ecec1d
Unverified
Commit
c4ecec1d
authored
Nov 07, 2019
by
Rémi Verschelde
Committed by
GitHub
Nov 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32853 from OsamaElHariri/visual_script_setter_props_fix
Set the properties of a Set node after add_node
parents
121fb46a
858afd53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
visual_script_editor.cpp
modules/visual_script/visual_script_editor.cpp
+5
-1
No files found.
modules/visual_script/visual_script_editor.cpp
View file @
c4ecec1d
...
...
@@ -3515,6 +3515,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
}
Ref
<
VisualScriptNode
>
vnode
;
Ref
<
VisualScriptPropertySet
>
script_prop_set
;
if
(
p_category
==
String
(
"method"
))
{
...
...
@@ -3525,8 +3526,8 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
Ref
<
VisualScriptPropertySet
>
n
;
n
.
instance
();
n
->
set_property
(
p_text
);
vnode
=
n
;
script_prop_set
=
n
;
}
else
if
(
p_category
==
String
(
"get"
))
{
Ref
<
VisualScriptPropertyGet
>
n
;
...
...
@@ -3578,6 +3579,9 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
undo_redo
->
add_undo_method
(
this
,
"_update_graph"
,
new_id
);
undo_redo
->
commit_action
();
if
(
script_prop_set
.
is_valid
())
script_prop_set
->
set_property
(
p_text
);
port_action_new_node
=
new_id
;
Ref
<
VisualScriptNode
>
vsn
=
script
->
get_node
(
func
,
port_action_new_node
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment