mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 20:24:41 +00:00
Document, cleanup and fix some theme properties
This commit is contained in:
parent
251fb83d53
commit
cfb6d25d30
6 changed files with 4 additions and 22 deletions
|
|
@ -1402,7 +1402,7 @@ void GraphEdit::_zoom_callback(float p_zoom_factor, Vector2 p_origin, Ref<InputE
|
|||
void GraphEdit::set_connection_activity(const StringName &p_from, int p_from_port, const StringName &p_to, int p_to_port, float p_activity) {
|
||||
for (Connection &E : connections) {
|
||||
if (E.from_node == p_from && E.from_port == p_from_port && E.to_node == p_to && E.to_port == p_to_port) {
|
||||
if (Math::is_equal_approx(E.activity, p_activity)) {
|
||||
if (!Math::is_equal_approx(E.activity, p_activity)) {
|
||||
// Update only if changed.
|
||||
top_layer->queue_redraw();
|
||||
minimap->queue_redraw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue