From 3a9d621b533e3bf057a1d3f9dc325464bf5e1c10 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 6 Sep 2015 18:04:49 -1000 Subject: [PATCH] Initial area support for HECL --- hecl/blender/CMakeLists.txt | 3 ++- hecl/blender/hecl/__init__.py | 5 +++-- hecl/blender/hecl/srea/__init__.py | 7 +++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 hecl/blender/hecl/srea/__init__.py diff --git a/hecl/blender/CMakeLists.txt b/hecl/blender/CMakeLists.txt index 9ed31b72d..eddbe24ae 100644 --- a/hecl/blender/CMakeLists.txt +++ b/hecl/blender/CMakeLists.txt @@ -9,7 +9,8 @@ list(APPEND PY_SOURCES hecl/sact/__init__.py hecl/sact/SACTAction.py hecl/sact/SACTEvent.py - hecl/sact/SACTSubtype.py) + hecl/sact/SACTSubtype.py + hecl/srea/__init__.py) bintoc(hecl_blendershell.c hecl_blendershell.py HECL_BLENDERSHELL) diff --git a/hecl/blender/hecl/__init__.py b/hecl/blender/hecl/__init__.py index 8d60ae362..35e1fbf08 100644 --- a/hecl/blender/hecl/__init__.py +++ b/hecl/blender/hecl/__init__.py @@ -13,7 +13,7 @@ bl_info = { "category": "System"} # Package import -from . import hmdl, sact, Nodegrid +from . import hmdl, sact, srea, Nodegrid Nodegrid = Nodegrid.Nodegrid import bpy, os, sys from bpy.app.handlers import persistent @@ -22,7 +22,8 @@ from bpy.app.handlers import persistent hecl_typeS = [ ('NONE', "None", "Active scene not using HECL", None, None), ('MESH', "Mesh", "Active scene represents an HMDL Mesh", hmdl.draw, hmdl.cook), -('ACTOR', "Actor", "Active scene represents a HECL Actor", sact.draw, sact.cook)] +('ACTOR', "Actor", "Active scene represents a HECL Actor", sact.draw, sact.cook), +('AREA', "Area", "Active scene represents a HECL Area", srea.draw, srea.cook)] # Main Scene Panel class hecl_scene_panel(bpy.types.Panel): diff --git a/hecl/blender/hecl/srea/__init__.py b/hecl/blender/hecl/srea/__init__.py new file mode 100644 index 000000000..ee30fdf6c --- /dev/null +++ b/hecl/blender/hecl/srea/__init__.py @@ -0,0 +1,7 @@ +# Cook +def cook(writebuffunc, platform, endianchar): + print('COOKING SREA') + +# Panel draw +def draw(layout, context): + pass