From e8f03c4d6a94aa16b3587bdce525cf0cf7c6c6c3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 14 Jan 2025 14:38:52 +0100 Subject: next commit --- extractor/rsm_format.gd | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'extractor/rsm_format.gd') diff --git a/extractor/rsm_format.gd b/extractor/rsm_format.gd index 2eccbd2..7eb41f0 100644 --- a/extractor/rsm_format.gd +++ b/extractor/rsm_format.gd @@ -178,6 +178,7 @@ class ModelNode: ## Byte Type: f32 [br] ## Byte Length: 4 [br] ## Versions: [<2.2] + ## Type: Radiants var rotation_angle: float ## Byte Type: f32 [br] @@ -361,7 +362,7 @@ class ModelNode: node.translate(translation_2) if rotation_axis != Vector3.ZERO: - node.rotate(rotation_axis, rotation_angle) + node.rotate_object_local(rotation_axis, rotation_angle) node.scale = scale @@ -373,11 +374,11 @@ class ModelNode: var face := faces[idx] surface_tool.add_triangle_fan( - PackedVector3Array(face.vertex_position_indices.map(func(idx): - return vertex_positions[idx]) + PackedVector3Array(face.vertex_position_indices.map(func(item_idx): + return vertex_positions[item_idx]) ), - PackedVector2Array(face.texture_coordinate_indices.map(func(idx): - return texture_coordinates[idx].coordinates) + PackedVector2Array(face.texture_coordinate_indices.map(func(item_idx): + return texture_coordinates[item_idx].coordinates) ) ) surface_tool.commit(mesh) -- cgit v1.2.3