Skip to content

Commit e434a0e

Browse files
committed
- Fixed: bpy.types.scene.update no longer supported
- Fixed: RTM Import/Export now works - Fixed: Updated cursor position for 2.8
1 parent d6ea8c9 commit e434a0e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

ArmaToolbox/MDLImporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def loadLOD(context, filePtr, objectName, materialData, layerFlag, lodnr):
458458

459459
print("Add edge split")
460460
maybeAddEdgeSplit(obj)
461-
scn.update()
461+
#scn.update()
462462
obj.select_set(True)
463463

464464
#if layerFlag == True:

ArmaToolbox/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ def getLodPresets():
143143
## Export RTM Operator
144144
#
145145

146-
class ArmaToolboxExportRTM(bpy.types.Operator, bpy_extras.io_utils.ExportHelper):
146+
class ATBX_OT_rtm_export(bpy.types.Operator, bpy_extras.io_utils.ExportHelper):
147147
"""Export RTM Animation file"""
148-
bl_idname = "armatoolbox.exportrtm"
148+
bl_idname = "armatoolbox.export_rtm"
149149
bl_label = "Export as RTM"
150150
bl_description = "Export an Arma 2/3 RTM Animation file"
151151

@@ -429,7 +429,7 @@ def ArmaToolboxAddProxyMenuFunc(self, context):
429429
'''
430430

431431
def ArmaToolboxExportRTMMenuFunc(self, context):
432-
self.layout.operator(ArmaToolboxExportRTM.bl_idname, text="Arma 2/3 .RTM Animation")
432+
self.layout.operator(ATBX_OT_rtm_export.bl_idname, text="Arma 3 .RTM Animation")
433433

434434

435435
###################################
@@ -537,7 +537,8 @@ def load_handler(dummy):
537537
ATBX_OT_p3d_import,
538538
ATBX_OT_p3d_export,
539539
ATBX_OT_asc_import,
540-
ATBX_OT_asc_export
540+
ATBX_OT_asc_export,
541+
ATBX_OT_rtm_export
541542
)
542543

543544
def register():

ArmaToolbox/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def execute(self, context):
152152
obj = context.active_object
153153
mesh = obj.data
154154

155-
cursor_location = bpy.context.scene.cursor_location
155+
cursor_location = bpy.context.scene.cursor.location
156156
cursor_location = cursor_location - obj.location
157157

158158
bm = bmesh.from_edit_mesh(mesh)

0 commit comments

Comments
 (0)