You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #31453 from Chaosus/vs_code_preview
Added code preview to visual shader
This commit is contained in:
@@ -1266,6 +1266,10 @@ void VisualShader::_update_shader() const {
|
||||
for (int i = 0; i < default_tex_params.size(); i++) {
|
||||
const_cast<VisualShader *>(this)->set_default_texture_param(default_tex_params[i].name, default_tex_params[i].param);
|
||||
}
|
||||
if (previous_code != final_code) {
|
||||
const_cast<VisualShader *>(this)->emit_signal("changed");
|
||||
}
|
||||
previous_code = final_code;
|
||||
}
|
||||
|
||||
void VisualShader::_queue_update() {
|
||||
|
||||
Reference in New Issue
Block a user