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
cce0a27e
Unverified
Commit
cce0a27e
authored
Mar 20, 2020
by
Yuri Roubinsky
Committed by
GitHub
Mar 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37187 from Chaosus/shader_fix
Fix incorrect shader block parsing
parents
2772840a
50729e4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
shader_language.cpp
servers/visual/shader_language.cpp
+3
-1
No files found.
servers/visual/shader_language.cpp
View file @
cce0a27e
...
...
@@ -5083,7 +5083,9 @@ Error ShaderLanguage::_parse_block(BlockNode *p_block, const Map<StringName, Bui
//a sub block, just because..
BlockNode
*
block
=
alloc_node
<
BlockNode
>
();
block
->
parent_block
=
p_block
;
_parse_block
(
block
,
p_builtin_types
,
false
,
p_can_break
,
p_can_continue
);
if
(
_parse_block
(
block
,
p_builtin_types
,
false
,
p_can_break
,
p_can_continue
)
!=
OK
)
{
return
ERR_PARSE_ERROR
;
}
p_block
->
statements
.
push_back
(
block
);
}
else
if
(
tk
.
type
==
TK_CF_IF
)
{
//if () {}
...
...
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