Skip to content
Snippets Groups Projects
Commit ca3967e1 authored by HENDRIX-ZT2's avatar HENDRIX-ZT2 Committed by neomonkeus
Browse files

Add skeleton_root property and UI

parent 83cc4b1d
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment