You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Use subgizmos instead of handles for Path3D curve points
This commit is contained in:
@@ -646,6 +646,18 @@ void Node3DEditorViewport::cancel_transform() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (se && se->gizmo.is_valid()) {
|
||||
Vector<int> ids;
|
||||
Vector<Transform3D> restore;
|
||||
|
||||
for (const KeyValue<int, Transform3D> &GE : se->subgizmos) {
|
||||
ids.push_back(GE.key);
|
||||
restore.push_back(GE.value);
|
||||
}
|
||||
|
||||
se->gizmo->commit_subgizmos(ids, restore, true);
|
||||
}
|
||||
|
||||
sp->set_global_transform(se->original);
|
||||
}
|
||||
|
||||
@@ -8071,6 +8083,7 @@ void Node3DEditor::_bind_methods() {
|
||||
ClassDB::bind_method("_refresh_menu_icons", &Node3DEditor::_refresh_menu_icons);
|
||||
|
||||
ClassDB::bind_method("update_all_gizmos", &Node3DEditor::update_all_gizmos);
|
||||
ClassDB::bind_method("update_transform_gizmo", &Node3DEditor::update_transform_gizmo);
|
||||
|
||||
ADD_SIGNAL(MethodInfo("transform_key_request"));
|
||||
ADD_SIGNAL(MethodInfo("item_lock_status_changed"));
|
||||
|
||||
Reference in New Issue
Block a user