Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
9554fe90
Commit
9554fe90
authored
14 years ago
by
John Phan
Browse files
Options
Downloads
Patches
Plain Diff
fixed import psk button
parent
63a92f2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_import_scene_unreal_psk.py
+6
-2
6 additions, 2 deletions
io_import_scene_unreal_psk.py
with
6 additions
and
2 deletions
io_import_scene_unreal_psk.py
+
6
−
2
View file @
9554fe90
...
...
@@ -438,7 +438,7 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK):
newbone
.
tail
.
y
=
parentbone
.
head
.
y
+
(
pos_y
+
bonesize
*
rotmatrix
[
1
][
1
])
newbone
.
tail
.
z
=
parentbone
.
head
.
z
+
(
pos_z
+
bonesize
*
rotmatrix
[
1
][
2
])
else
:
print
(
"
rotmatrix:
"
,
dir
(
bone
.
bindmat
.
to_matrix
().
resize_4x4
()))
#
print("rotmatrix:",dir(bone.bindmat.to_matrix().resize_4x4()))
#rotmatrix = bone.bindmat.to_matrix().resize_4x4().to_3x3() # XXX, redundant matrix conversion?
rotmatrix
=
bone
.
bindmat
.
to_matrix
().
to_3x3
()
# XXX, redundant matrix conversion?
...
...
@@ -603,7 +603,9 @@ class IMPORT_OT_psk(bpy.types.Operator):
'''
Load a skeleton mesh psk File
'''
bl_idname
=
"
import_scene.psk
"
bl_label
=
"
Import PSK
"
bl_space_type
=
"
PROPERTIES
"
bl_region_type
=
"
WINDOW
"
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
filepath
=
StringProperty
(
name
=
"
File Path
"
,
description
=
"
Filepath used for importing the OBJ file
"
,
maxlen
=
1024
,
default
=
""
)
...
...
@@ -624,9 +626,11 @@ def menu_func(self, context):
self
.
layout
.
operator
(
IMPORT_OT_psk
.
bl_idname
,
text
=
"
Skeleton Mesh (.psk)
"
)
def
register
():
bpy
.
utils
.
register_module
(
__name__
)
bpy
.
types
.
INFO_MT_file_import
.
append
(
menu_func
)
def
unregister
():
bpy
.
utils
.
unregister_module
(
__name__
)
bpy
.
types
.
INFO_MT_file_import
.
remove
(
menu_func
)
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment