Skip to content

Commit

Permalink
UPBGE: Convert curves as Empty objects to add it in scene.objects
Browse files Browse the repository at this point in the history
See comments in the commit.
Test file: http://pasteall.org/blend/index.php?id=48626
  • Loading branch information
youle31 committed Dec 31, 2017
1 parent 5a546f6 commit cd9fa2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/gameengine/Converter/BL_BlenderDataConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,16 @@ static KX_GameObject *BL_GameObjectFromBlenderObject(Object *ob, KX_Scene *kxsce
if (ob->curve_cache == nullptr) {
BKE_displist_make_curveTypes(blenderscene, ob, false);
}
/* We can convert curves as empty for experimental purposes in 2.7
* and to prepare transition to 2.8.
* Note: if we use eevee render in 2.8, to finalize stuff about curves,
* see : https://github.com/youle31/EEVEEinUPBGE/commit/ff11e0fdea4dfc121a7eaa7b7d48183eaf5fd9f6
* for comments about culling.
*/
gameobj = new KX_EmptyObject(kxscene, KX_Scene::m_callbacks);
break;
}
#endif

}
if (gameobj) {
gameobj->SetLayer(ob->lay);
Expand Down

0 comments on commit cd9fa2b

Please sign in to comment.