This commit is contained in:
luboslenco
2024-03-24 10:26:56 +01:00
parent 767474c934
commit a76a275a36
32 changed files with 618 additions and 564 deletions
+3 -3
View File
@@ -442,10 +442,10 @@ function history_reset() {
}
///if (is_paint || is_sculpt)
function history_edit_nodes(canvas: zui_node_canvas_t, canvas_type: i32, canvas_group: Null<i32> = null) {
function history_edit_nodes(canvas: zui_node_canvas_t, canvas_type: i32, canvas_group: i32 = -1) {
///end
///if is_lab
function history_edit_nodes(canvas: zui_node_canvas_t, canvas_group: Null<i32> = null) {
function history_edit_nodes(canvas: zui_node_canvas_t, canvas_group: i32 = -1) {
///end
let step: step_t = history_push(tr("Edit Nodes"));
step.canvas_group = canvas_group;
@@ -702,7 +702,7 @@ function history_copy_to_undo(from_id: i32, to_id: i32, is_mask: bool) {
function history_get_canvas_owner(step: step_t): any {
///if (is_paint || is_sculpt)
return step.canvas_group == null ?
return step.canvas_group == -1 ?
project_materials[step.material] :
project_material_groups[step.canvas_group];
///end