Skip to content

Commit

Permalink
Merge pull request #123 from AFCStudio/update-arrangements
Browse files Browse the repository at this point in the history
Update Arrangements
  • Loading branch information
feedbackex authored Mar 4, 2017
2 parents 5e9e11f + 42fe868 commit 805094e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@ BCRY Exporter

-------------------------------------------------------------------------------

## 5.1
#### Compatibility
* Only compatible with CryEngine 3.5 and up.
* Only compatible with Blender 2.7 and up.
* Supports primary assets: CGF, CGA, CHR, SKIN, ANM, I_CAF.
* Compatible with LumberYard.

#### UI Changes:
* User Defined Properties in Tool Shelf Panel.

#### New Features:
* Vehicle exporting support.
* Parent-Child relation exporting.
* CGA parent child support.
* Dummy/Empty object exporting.
* Dummy/Empty object UDP support.
* Vehicle hull UDP support.
* Alpha vertex color exporting for Blend Layer.

#### Improvements/Fixes:
* Custom normals area calculation.
* Material exporting log.
* Material order fix.
* Set Material Name defualt tool fixing.
* UDP properties fixing.



## 5.0
#### Compatibility
* Only compatible with CryEngine 3.5 and up.
Expand Down
4 changes: 2 additions & 2 deletions io_bcry_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"author": "Özkan Afacan, Angelo J. Miner, Mikołaj Milej, Daniel White, "
"Oscar Martin Garcia, Duo Oratar, David Marcelis",
"blender": (2, 70, 0),
"version": (5, 0, 0),
"version": (5, 1, 0),
"location": "BCRY Exporter Menu",
"description": "Export assets from Blender to CryEngine 3",
"description": "Export assets from Blender to CryEngine V",
"warning": "",
"wiki_url": "https://github.com/AFCStudio/BCryExporter/wiki",
"tracker_url": "https://github.com/AFCStudio/BCryExporter/issues",
Expand Down
2 changes: 1 addition & 1 deletion io_bcry_exporter/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def _write_child_objects(self, parent_object, parent_node, group):
node.appendChild(udp_extra)

self._write_child_objects(child_object, node, group)

parent_node.appendChild(node)

return parent_node
Expand Down
10 changes: 6 additions & 4 deletions io_bcry_exporter/material_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_mtl_files(_config, materials=None):
sub_material = _doc.createElement('SubMaterials')
parent_material.appendChild(sub_material)
set_public_params(_doc, None, parent_material)

print()
bcPrint("'{}' material is being processed...".format(node))

Expand Down Expand Up @@ -80,7 +80,7 @@ def generate_mtl_files(_config, materials=None):
def write_material_information(material_name):
parts = material_name.split('__')
bcPrint("Subname: '{}' - Index: '{}' - Physic Type: '{}'".format(
parts[2], parts[1], parts[3]))
parts[2], parts[1], parts[3]))


def get_material_groups(materials):
Expand Down Expand Up @@ -119,10 +119,12 @@ def get_materials(just_selected=False):
if material not in materials:
node_name = utils.get_node_name(group)

material.name = utils.replace_invalid_rc_characters(material.name)
material.name = utils.replace_invalid_rc_characters(
material.name)
for image in get_textures(material):
try:
image.name = utils.replace_invalid_rc_characters(image.name)
image.name = utils.replace_invalid_rc_characters(
image.name)
except AttributeError:
pass

Expand Down
8 changes: 6 additions & 2 deletions io_bcry_exporter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,11 @@ def is_visual_scene_node_writed(object_, group):

def is_there_a_parent_releation(object_, group):
while object_.parent:
if is_object_in_group(object_.parent,
group) and object_.parent.type in ('MESH', 'EMPTY'):
if is_object_in_group(
object_.parent,
group) and object_.parent.type in (
'MESH',
'EMPTY'):
return True
else:
return is_there_a_parent_releation(object_.parent, group)
Expand All @@ -775,6 +778,7 @@ def is_dummy(object_):
# Fakebones:
#------------------------------------------------------------------------------


def get_fakebone(bone_name):
return next((fakebone for fakebone in get_type("fakebones")
if fakebone.name == bone_name), None)
Expand Down

0 comments on commit 805094e

Please sign in to comment.