Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
MapArea and MapUniverse blend types added
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Oct 25, 2015
1 parent f2870c1 commit 046c019
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions blender/BlenderConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ static const char* BlendTypeStrs[] =
"ACTOR",
"AREA",
"WORLD",
"MAPAREA",
"MAPUNIVERSE",
nullptr
};

Expand Down
4 changes: 3 additions & 1 deletion blender/BlenderConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class BlenderConnection
TypeMesh,
TypeActor,
TypeArea,
TypeWorld
TypeWorld,
TypeMapArea,
TypeMapUniverse
};
private:
bool m_lock = false;
Expand Down
4 changes: 3 additions & 1 deletion blender/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ list(APPEND PY_SOURCES
hecl/sact/SACTAction.py
hecl/sact/SACTSubtype.py
hecl/srea/__init__.py
hecl/swld/__init__.py)
hecl/swld/__init__.py
hecl/mapa.py
hecl/mapu.py)

bintoc(hecl_blendershell.c hecl_blendershell.py HECL_BLENDERSHELL)

Expand Down
6 changes: 4 additions & 2 deletions blender/hecl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"category": "System"}

# Package import
from . import hmdl, sact, srea, swld, Nodegrid, Patching
from . import hmdl, sact, srea, swld, mapa, mapu, Nodegrid, Patching
Nodegrid = Nodegrid.Nodegrid
import bpy, os, sys
from bpy.app.handlers import persistent
Expand All @@ -21,7 +21,9 @@
('MESH', "Mesh", "Active scene represents an HMDL Mesh", hmdl.draw),
('ACTOR', "Actor", "Active scene represents a HECL Actor", sact.draw),
('AREA', "Area", "Active scene represents a HECL Area", srea.draw),
('WORLD', "World", "Active scene represents a HECL World", swld.draw)]
('WORLD', "World", "Active scene represents a HECL World", swld.draw),
('MAPAREA', "Map Area", "Active scene represents a HECL Map Area", mapa.draw),
('MAPUNIVERSE', "Map Universe", "Active scene represents a HECL Map Universe", mapu.draw)]

# Main Scene Panel
class hecl_scene_panel(bpy.types.Panel):
Expand Down
2 changes: 2 additions & 0 deletions blender/hecl/mapa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def draw(layout, context):
pass
2 changes: 2 additions & 0 deletions blender/hecl/mapu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def draw(layout, context):
pass

0 comments on commit 046c019

Please sign in to comment.