Skip to content

Commit 3170b87

Browse files
committed
Merge pull request godotengine#118783 from cashew-olddew/shader_previews_inside_loop_hotfix
Fix shader loop detection for shader previewer
2 parents a9e7796 + 484e5b6 commit 3170b87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

editor/shader/text_shader_editor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ bool TextShaderPreview::_is_inside_loop(const PackedStringArray &p_lines, int p_
343343
if (func_regex->search(clean_line).is_valid()) {
344344
return false;
345345
}
346+
347+
brace_stack = 0;
346348
}
347349
}
348350

0 commit comments

Comments
 (0)