You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add shorthand for using singleton string names
This commit is contained in:
@@ -387,7 +387,7 @@ void CollisionShape2DEditor::_shape_changed() {
|
||||
canvas_item_editor->update_viewport();
|
||||
|
||||
if (current_shape.is_valid()) {
|
||||
current_shape->disconnect(SceneStringNames::get_singleton()->changed, callable_mp(canvas_item_editor, &CanvasItemEditor::update_viewport));
|
||||
current_shape->disconnect_changed(callable_mp(canvas_item_editor, &CanvasItemEditor::update_viewport));
|
||||
current_shape = Ref<Shape2D>();
|
||||
shape_type = -1;
|
||||
}
|
||||
@@ -399,7 +399,7 @@ void CollisionShape2DEditor::_shape_changed() {
|
||||
current_shape = node->get_shape();
|
||||
|
||||
if (current_shape.is_valid()) {
|
||||
current_shape->connect(SceneStringNames::get_singleton()->changed, callable_mp(canvas_item_editor, &CanvasItemEditor::update_viewport));
|
||||
current_shape->connect_changed(callable_mp(canvas_item_editor, &CanvasItemEditor::update_viewport));
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user