mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Cleanup EditorNode and EditorData
Co-authored-by: Eric M <itsjusteza@gmail.com>
This commit is contained in:
parent
482cdeaf71
commit
314430b868
14 changed files with 646 additions and 701 deletions
|
@ -6035,8 +6035,8 @@ void VisualShaderNodePortPreview::_shader_changed() {
|
|||
|
||||
//find if a material is also being edited and copy parameters to this one
|
||||
|
||||
for (int i = EditorNode::get_singleton()->get_editor_history()->get_path_size() - 1; i >= 0; i--) {
|
||||
Object *object = ObjectDB::get_instance(EditorNode::get_singleton()->get_editor_history()->get_path_object(i));
|
||||
for (int i = EditorNode::get_singleton()->get_editor_selection_history()->get_path_size() - 1; i >= 0; i--) {
|
||||
Object *object = ObjectDB::get_instance(EditorNode::get_singleton()->get_editor_selection_history()->get_path_object(i));
|
||||
ShaderMaterial *src_mat;
|
||||
if (!object) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue