Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender_nif_plugin
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
Grant Kim
blender_nif_plugin
Commits
ca3967e1
Commit
ca3967e1
authored
3 years ago
by
HENDRIX-ZT2
Committed by
neomonkeus
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add skeleton_root property and UI
parent
83cc4b1d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_scene_niftools/properties/object.py
+5
-0
5 additions, 0 deletions
io_scene_niftools/properties/object.py
io_scene_niftools/ui/object.py
+6
-1
6 additions, 1 deletion
io_scene_niftools/ui/object.py
with
11 additions
and
1 deletion
io_scene_niftools/properties/object.py
+
5
−
0
View file @
ca3967e1
...
...
@@ -150,6 +150,11 @@ class ObjectProperty(PropertyGroup):
type
=
ExtraDataStore
,
)
skeleton_root
:
StringProperty
(
name
=
'
Skeleton Root
'
,
description
=
"
The bone that acts as the root of the SkinInstance
"
,
)
class
BsInventoryMarker
(
PropertyGroup
):
...
...
This diff is collapsed.
Click to expand it.
io_scene_niftools/ui/object.py
+
6
−
1
View file @
ca3967e1
...
...
@@ -56,7 +56,8 @@ class ObjectPanel(Panel):
return
True
def
draw
(
self
,
context
):
nif_obj_props
=
context
.
object
.
niftools
ob
=
context
.
object
nif_obj_props
=
ob
.
niftools
layout
=
self
.
layout
row
=
layout
.
column
()
...
...
@@ -68,6 +69,10 @@ class ObjectPanel(Panel):
row
.
prop
(
nif_obj_props
,
"
flags
"
)
row
.
prop
(
nif_obj_props
,
"
longname
"
)
parent
=
ob
.
parent
if
parent
and
parent
.
type
==
'
ARMATURE
'
:
row
.
prop_search
(
nif_obj_props
,
"
skeleton_root
"
,
parent
.
data
,
"
bones
"
)
class
ObjectExtraData
(
Panel
):
bl_label
=
"
Niftools Object Extra Data
"
...
...
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