Fix crash on scenes with tool scripts and mismatched node types
This commit is contained in:
parent
00268e37a0
commit
1fbbe25cea
@ -2656,6 +2656,7 @@ void EditorInspector::_update_script_class_properties(const Object &p_object, Li
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NodeC -> C props... -> NodeB..C..
|
// NodeC -> C props... -> NodeB..C..
|
||||||
|
if (script_variables) {
|
||||||
r_list.erase(script_variables);
|
r_list.erase(script_variables);
|
||||||
List<PropertyInfo>::Element *to_delete = bottom->next();
|
List<PropertyInfo>::Element *to_delete = bottom->next();
|
||||||
while (to_delete && !(to_delete->get().usage & PROPERTY_USAGE_CATEGORY)) {
|
while (to_delete && !(to_delete->get().usage & PROPERTY_USAGE_CATEGORY)) {
|
||||||
@ -2664,6 +2665,7 @@ void EditorInspector::_update_script_class_properties(const Object &p_object, Li
|
|||||||
}
|
}
|
||||||
r_list.erase(bottom);
|
r_list.erase(bottom);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EditorInspector::set_restrict_to_basic_settings(bool p_restrict) {
|
void EditorInspector::set_restrict_to_basic_settings(bool p_restrict) {
|
||||||
restrict_to_basic = p_restrict;
|
restrict_to_basic = p_restrict;
|
||||||
|
Loading…
Reference in New Issue
Block a user