Skip to content

Commit

Permalink
Fixed error with scene.frame_end type
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycrow101 committed Oct 13, 2022
1 parent b1f6cdb commit e591fb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions io_scene_rw_anm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import bpy
from bpy.props import (
StringProperty,
BoolProperty,
FloatProperty,
)
from bpy_extras.io_utils import (
Expand All @@ -13,7 +12,7 @@
bl_info = {
"name": "RenderWare Animation",
"author": "Psycrow",
"version": (0, 1, 0),
"version": (0, 1, 1),
"blender": (2, 81, 0),
"location": "File > Import-Export",
"description": "Import / Export RenderWare Animation (.anm)",
Expand Down
1 change: 0 additions & 1 deletion io_scene_rw_anm/export_rw_anm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import bpy
from mathutils import Matrix, Quaternion, Vector
from . anm import Anm, AnmChunk, AnmAction, AnmKeyframe, ANM_CHUNK_ID, ANM_ACTION_VERSION


Expand Down
2 changes: 1 addition & 1 deletion io_scene_rw_anm/import_rw_anm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def load(context, filepath, *, fps):
act.name = path.basename(filepath)
act['dragonff_rw_version'] = chunk.version
animation_data.action = act
context.scene.frame_end = chunk.action.duration * fps
context.scene.frame_end = int(chunk.action.duration * fps)

bpy.ops.object.mode_set(mode='OBJECT')

Expand Down

0 comments on commit e591fb5

Please sign in to comment.