Skip to content

Commit c64c4c8

Browse files
authored
Merge pull request #62 from MrClock8163/dev
v2.3.3
2 parents e3ab935 + 196b9f5 commit c64c4c8

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Arma3ObjectBuilder/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v2.3.3](https://github.com/MrClock8163/Arma3ObjectBuilder/releases/tag/v2.3.3) (Blender 2.90 -> 4.1)
4+
5+
### Fixed
6+
7+
- Extract Proxy would fail due to missing internal property
8+
39
## [v2.3.2](https://github.com/MrClock8163/Arma3ObjectBuilder/releases/tag/v2.3.2) (Blender 2.90 -> 4.1)
410

511
### Added

Arma3ObjectBuilder/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "Arma 3 Object Builder",
33
"description": "Collection of tools for editing Arma 3 content",
44
"author": "MrClock (present add-on), Hans-Joerg \"Alwarren\" Frieden (original ArmaToolbox add-on)",
5-
"version": (2, 3, 2),
5+
"version": (2, 3, 3),
66
"blender": (2, 90, 0),
77
"location": "Object Builder panels",
8-
"warning": "Development",
8+
"warning": "",
99
"doc_url": "https://mrcmodding.gitbook.io/arma-3-object-builder/home",
1010
"tracker_url": "https://github.com/MrClock8163/Arma3ObjectBuilder/issues",
1111
"category": "3D View"

Arma3ObjectBuilder/ui/tool_proxies.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class A3OB_OT_proxy_extract(bpy.types.Operator):
118118
first_lod_only: bpy.props.BoolProperty(default=True)
119119
translate_selections: bpy.props.BoolProperty()
120120
cleanup_empty_selections: bpy.props.BoolProperty()
121+
sections: bpy.props.EnumProperty(items=(("PRESERVE", "", ""),), default="PRESERVE")
121122
absolute_paths: bpy.props.BoolProperty(default=True)
122123
filepath: bpy.props.StringProperty()
123124

@@ -136,6 +137,11 @@ def execute(self, context):
136137
with open(self.filepath, "rb") as file:
137138
try:
138139
lod_objects = import_p3d.read_file(self, context, file)
140+
imported_object = lod_objects[0]
141+
imported_object.matrix_world = proxy_object.matrix_world
142+
imported_object.name = os.path.basename(self.filepath)
143+
imported_object.data.name = os.path.basename(self.filepath)
144+
bpy.data.meshes.remove(proxy_object.data)
139145
self.report({'INFO'}, "Successfully extracted proxy (check the logs in the system console)")
140146
except struct.error as ex:
141147
self.report({'ERROR'}, "Unexpected EndOfFile (check the system console)")
@@ -144,12 +150,6 @@ def execute(self, context):
144150
self.report({'ERROR'}, "%s (check the system console)" % ex)
145151
traceback.print_exc()
146152

147-
imported_object = lod_objects[0]
148-
imported_object.matrix_world = proxy_object.matrix_world
149-
imported_object.name = os.path.basename(self.filepath)
150-
imported_object.data.name = os.path.basename(self.filepath)
151-
bpy.data.meshes.remove(proxy_object.data)
152-
153153
return {'FINISHED'}
154154

155155

0 commit comments

Comments
 (0)