@@ -185,13 +185,6 @@ def draw(self, context):
185185 layout .prop (operator , "frame_count" )
186186
187187
188- # layout.prop(operator, "clamp")
189- # col = layout.column(align=True)
190- # col.prop(operator, "frame_start")
191- # col.prop(operator, "frame_end")
192- # col.enabled = operator.clamp
193-
194-
195188class A3OB_OP_import_rtm (bpy .types .Operator , bpy_extras .io_utils .ImportHelper ):
196189 """Import action from Arma 3 RTM"""
197190
@@ -364,6 +357,18 @@ def draw(self, context):
364357 A3OB_PT_import_rtm_mapping
365358)
366359
360+ if bpy .app .version >= (4 , 1 , 0 ):
361+ class A3OB_FH_import_rtm (bpy .types .FileHandler ):
362+ bl_label = "File handler for RTM import"
363+ bl_import_operator = "a3ob.import_rtm"
364+ bl_file_extensions = ".rtm"
365+
366+ @classmethod
367+ def poll_drop (cls , context ):
368+ return context .area and context .area .type == 'VIEW_3D'
369+
370+ classes = (* classes , A3OB_FH_import_rtm )
371+
367372
368373def menu_func_export (self , context ):
369374 self .layout .operator (A3OB_OP_export_rtm .bl_idname , text = "Arma 3 animation (.rtm)" )
0 commit comments